Class LiricalTemplate
java.lang.Object
org.monarchinitiative.lirical.io.output.LiricalTemplate
- Direct Known Subclasses:
HtmlTemplate
,TsvTemplate
This is the superclass for
TsvTemplate
and HtmlTemplate
, and provides common methods for
setting up the data prior to output as either tab-separated values (TSV) or HTML.- Author:
- Peter Robinson
-
Field Summary
Modifier and TypeFieldDescriptionprotected final freemarker.template.Configuration
FreeMarker configuration object.protected static final String
protected final Map<org.monarchinitiative.phenol.ontology.data.TermId,
Gene2Genotype> protected Path
Map of data that will be used for the FreeMark template.Anchors that are used in the HTML output to navigate to the top differential diagnoses.This map contains the names of the top differential diagnoses that we will show as a list at the top of the page together with anchors to navigate to the detailed analysis. -
Constructor Summary
ModifierConstructorDescriptionprotected
LiricalTemplate
(org.monarchinitiative.phenol.ontology.data.MinimalOntology hpo, AnalysisData analysisData, AnalysisResultsMetadata resultsMetadata, OutputOptions outputOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Path
createOutputFile
(Path outdir, String prefix, String format) protected static void
mkdirIfNotExist
(Path dir) protected abstract String
protected String
Some of our name strings contain multiple synonyms.protected Function<LiricalVariant,
VisualizableVariant>
-
Field Details
-
templateData
Map of data that will be used for the FreeMark template. -
cfg
protected final freemarker.template.Configuration cfgFreeMarker configuration object. -
EMPTY_STRING
- See Also:
-
outputPath
-
topDiagnosisMap
This map contains the names of the top differential diagnoses that we will show as a list at the top of the page together with anchors to navigate to the detailed analysis. -
topDiagnosisAnchors
Anchors that are used in the HTML output to navigate to the top differential diagnoses. -
geneById
-
-
Constructor Details
-
LiricalTemplate
protected LiricalTemplate(org.monarchinitiative.phenol.ontology.data.MinimalOntology hpo, AnalysisData analysisData, AnalysisResultsMetadata resultsMetadata, OutputOptions outputOptions)
-
-
Method Details
-
outputFormatString
-
shortName
Some of our name strings contain multiple synonyms. This function removes all but the first. -
createOutputFile
-
mkdirIfNotExist
-
toVisualizableVariant
-