Package org.snpeff.outputFormatter
Class OutputFormatter
java.lang.Object
org.snpeff.outputFormatter.OutputFormatter
- Direct Known Subclasses:
BedOutputFormatter,VcfOutputFormatter
Formats output
How is this used:
- newSection(); // Create a new 'section' on the output format (e.g. a new Marker)
- add(); // Add all changes related to this section (i.e. all changes related to this marker)
- endSection(); // Output all changes related to this section (output header if needed), clean up list of changes
- Author:
- pcingola
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(VariantEffect variantEffect) Add effects to listclone()voidclose()CLose output files, if anyendSection(Marker marker) Finish up sectionvoidPrint a "raw" string to a filevoidprintSection(Marker marker) End this section and print resultsvoidvoidsetCommandLineStr(String commandLineStr) voidvoidsetOutOffset(int outOffset) voidsetOutputFile(String outputFile) voidsetShowHeader(boolean showHeader) voidsetSupressOutput(boolean supressOutput) voidsetUseGeneId(boolean useGeneId) voidsetUseHgvs(boolean useHgvs) voidsetUseOicr(boolean useOicr) voidsetUseSequenceOntology(boolean useSequenceOntology) voidsetVariantEffectResutFilter(VariantEffectFilter changeEffectResutFilter) voidsetVersion(String version) voidstartSection(Marker marker) Starts a new sectiontoString()protected abstract StringShow header
-
Constructor Details
-
OutputFormatter
public OutputFormatter()
-
-
Method Details
-
add
Add effects to list -
clone
-
close
public void close()CLose output files, if any -
endSection
Finish up section -
print
Print a "raw" string to a file -
printSection
End this section and print results -
setChrStr
-
setCommandLineStr
-
setConfig
-
setOutOffset
public void setOutOffset(int outOffset) -
setOutputFile
-
setShowHeader
public void setShowHeader(boolean showHeader) -
setSupressOutput
public void setSupressOutput(boolean supressOutput) -
setUseGeneId
public void setUseGeneId(boolean useGeneId) -
setUseHgvs
public void setUseHgvs(boolean useHgvs) -
setUseOicr
public void setUseOicr(boolean useOicr) -
setUseSequenceOntology
public void setUseSequenceOntology(boolean useSequenceOntology) -
setVariantEffectResutFilter
-
setVersion
-
startSection
Starts a new section -
toString
-
toStringHeader
Show header
-