Class Lirical2Svg
java.lang.Object
org.monarchinitiative.lirical.io.output.svg.Lirical2Svg
- Direct Known Subclasses:
 Lr2Svg,Posttest2Svg,Sparkline2Svg
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final intprotected static final intdistance between two adjacent "boxes"protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intminimum distance to top of image of graphic elementsprotected static final Stringprotected static final Stringprotected static final String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringprettifyDiseaseName(String originalDiseaseName) This method shortens items such as #101200 APERT SYNDROME;;ACROCEPHALOSYNDACTYLY, TYPE I; ACS1;;ACS IAPERT-CROUZON DISEASE, INCLUDED;; to simply APERT SYNDROMEprotected static <K,V extends Comparable<? super V>> 
Map<K,V> sortByValue(Map<K, V> map) protected voidwriteDiamond(Writer writer, int X, int Y) We use a diamond symbol to show a value that would be too small to appear as a visible box.protected voidwriteDiamond(Writer writer, int X, int Y, String msg) We use a diamond symbol to show a value that would be too small to appear as a visible box.protected voidwriteFooter(Writer writer)  
- 
Field Details
- 
MIN_VERTICAL_OFFSET
protected static final int MIN_VERTICAL_OFFSETminimum distance to top of image of graphic elements- See Also:
 
 - 
BOX_OFFSET
protected static final int BOX_OFFSETdistance between two adjacent "boxes"- See Also:
 
 - 
BOX_HEIGHT
protected static final int BOX_HEIGHT- See Also:
 
 - 
BLUE
- See Also:
 
 - 
RED
- See Also:
 
 - 
BROWN
- See Also:
 
 - 
DARKBLUE
- See Also:
 
 - 
VIOLET
- See Also:
 
 - 
ORANGE
- See Also:
 
 - 
BLACK
- See Also:
 
 - 
GREEN
- See Also:
 
 - 
BRIGHT_GREEN
- See Also:
 
 
 - 
 - 
Constructor Details
- 
Lirical2Svg
public Lirical2Svg() 
 - 
 - 
Method Details
- 
prettifyDiseaseName
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
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
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