Class Lirical2Svg

java.lang.Object
org.monarchinitiative.lirical.io.output.svg.Lirical2Svg
Direct Known Subclasses:
Lr2Svg, Posttest2Svg, Sparkline2Svg

public class Lirical2Svg extends Object
  • Field Details

  • Constructor Details

    • Lirical2Svg

      public Lirical2Svg()
  • Method Details

    • writeFooter

      protected void writeFooter(Writer writer) throws IOException
      Throws:
      IOException
    • prettifyDiseaseName

      protected String prettifyDiseaseName(String originalDiseaseName)
      This method shortens items such as #101200 APERT SYNDROME;;ACROCEPHALOSYNDACTYLY, TYPE I; ACS1;;ACS IAPERT-CROUZON DISEASE, INCLUDED;; to simply APERT SYNDROME
      Parameters:
      originalDiseaseName - original String from HPO database, derived from OMIM and potentially historic
      Returns:
      simplified and prettified name
    • writeDiamond

      protected void writeDiamond(Writer writer, int X, int Y, String msg) throws IOException
      We use a diamond symbol to show a value that would be too small to appear as a visible box. We do this bothfor the likelihood ratio as well as for the post-test probability
      Throws:
      IOException
    • writeDiamond

      protected void writeDiamond(Writer writer, int X, int Y) throws IOException
      We use a diamond symbol to show a value that would be too small to appear as a visible box. We do this bothfor the likelihood ratio as well as for the post-test probability
      Throws:
      IOException
    • sortByValue

      protected static <K, V extends Comparable<? super V>> Map<K,V> sortByValue(Map<K,V> map)