Package org.snpeff.outputFormatter
Class VcfOutputFormatter
- java.lang.Object
-
- org.snpeff.outputFormatter.OutputFormatter
-
- org.snpeff.outputFormatter.VcfOutputFormatter
-
public class VcfOutputFormatter extends OutputFormatter
Formats output as VCF- Author:
- pcingola
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugstatic java.lang.StringVCF_INFO_OICR_NAME
-
Constructor Summary
Constructors Constructor Description VcfOutputFormatter()VcfOutputFormatter(java.util.List<VcfEntry> vcfEntries)Add all vcf entries to a list (used only for debugging and test-cases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddHeader()Add headerprotected voidaddInfo(VcfEntry vcfEntry)Add effects to INFO fieldOutputFormatterclone()java.lang.StringendSection(Marker marker)Finish up sectionjava.util.List<java.lang.String>getNewHeaderLines()New lines to be added to headervoidsetFormatVersion(EffFormatVersion formatVersion)voidsetGatk(boolean gatk)voidsetLossOfFunction(boolean lossOfFunction)voidsetOutOffset(int outOffset)voidstartSection(Marker marker)Starts a new sectionjava.lang.StringtoString()protected java.lang.StringtoStringHeader()Show header-
Methods inherited from class org.snpeff.outputFormatter.OutputFormatter
add, close, print, printSection, setChrStr, setCommandLineStr, setConfig, setOutputFile, setShowHeader, setSupressOutput, setUseGeneId, setUseHgvs, setUseOicr, setUseSequenceOntology, setVariantEffectResutFilter, setVersion
-
-
-
-
Field Detail
-
debug
public static boolean debug
-
VCF_INFO_OICR_NAME
public static final java.lang.String VCF_INFO_OICR_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VcfOutputFormatter
public VcfOutputFormatter()
-
VcfOutputFormatter
public VcfOutputFormatter(java.util.List<VcfEntry> vcfEntries)
Add all vcf entries to a list (used only for debugging and test-cases)
-
-
Method Detail
-
addHeader
protected void addHeader()
Add header
-
addInfo
protected void addInfo(VcfEntry vcfEntry)
Add effects to INFO field
-
clone
public OutputFormatter clone()
- Overrides:
clonein classOutputFormatter
-
endSection
public java.lang.String endSection(Marker marker)
Finish up section- Overrides:
endSectionin classOutputFormatter
-
getNewHeaderLines
public java.util.List<java.lang.String> getNewHeaderLines()
New lines to be added to header
-
setFormatVersion
public void setFormatVersion(EffFormatVersion formatVersion)
-
setGatk
public void setGatk(boolean gatk)
-
setLossOfFunction
public void setLossOfFunction(boolean lossOfFunction)
-
setOutOffset
public void setOutOffset(int outOffset)
- Overrides:
setOutOffsetin classOutputFormatter
-
startSection
public void startSection(Marker marker)
Description copied from class:OutputFormatterStarts a new section- Overrides:
startSectionin classOutputFormatter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classOutputFormatter
-
toStringHeader
protected java.lang.String toStringHeader()
Show header- Specified by:
toStringHeaderin classOutputFormatter
-
-