Class Sparkline2Svg

java.lang.Object
org.monarchinitiative.lirical.io.output.svg.Lirical2Svg
org.monarchinitiative.lirical.io.output.svg.Sparkline2Svg

public class Sparkline2Svg extends Lirical2Svg
Make a set of sparklines for the top of the page. Note that in the "main" HPO/Gene plots for each disease, each of the the features orders the HPO according to the individual likelihood ratios, but for the sparklines we want to have the same order for each case.
Author:
Peter Robinson
  • Constructor Details

    • Sparkline2Svg

      public Sparkline2Svg(TestResult result, boolean useGenotype, org.monarchinitiative.phenol.ontology.data.MinimalOntology ontology)
      Set up the Sparkline2Svg generator by sorting the HPO terms according to their likelihood ratios in the top diagnosis (diseaseId).
      Parameters:
      result - A representation of the Case
  • Method Details

    • getSparklineSvg

      public String getSparklineSvg(TestResult result)
      This is used by Phenotype only output. We supply an empty string instead of a gene symbol. Note that because the test results know that they do not have a genotype, this will not affect the output.
      Parameters:
      result - test result
      Returns:
      an SVG string
    • getSparklineSvg

      public String getSparklineSvg(String gsymbol, TestResult result)
    • getGeneSparklineSvg

      public String getGeneSparklineSvg(AnalysisResults results, org.monarchinitiative.phenol.ontology.data.TermId diseaseId, String gsymbol)
    • getPosttestBar

      public String getPosttestBar(double ptprob)