Package org.snpsift
Class SnpSiftCmdAnnotate
java.lang.Object
org.snpsift.SnpSift
org.snpsift.SnpSiftCmdAnnotate
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
Annotate a VCF file with ID from another VCF file (database)
- Author:
- pcingola
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotateVcfDbprotected booleanprotected Stringprotected intprotected Stringprotected intprotected org.snpsift.SnpSiftCmdAnnotate.AnnotationMethodprotected Stringstatic final intprotected booleanprotected booleanprotected booleanprotected org.snpeff.fileIterator.VcfFileIteratorFields inherited from class org.snpsift.SnpSift
args, BUILD, command, config, configFile, dataDir, dbFileName, dbTabix, dbType, debug, download, EMPTY_ARGS, errCount, genomeVersion, help, log, needsConfig, needsDb, needsGenome, numWorkers, output, quiet, REVISION, saveOutput, shiftArgs, SHOW_EVERY_VCFLINES, showVcfHeader, showVersion, SOFTWARE_NAME, suppressOutput, vcfHeaderAddProgramVersion, vcfHeaderProcessed, vcfInputFile, verbose, VERSION, VERSION_MAJOR, VERSION_NO_NAME, VERSION_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanannotate(org.snpeff.vcf.VcfEntry vcfEntry) booleanannotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize database for annotation processprotected List<org.snpeff.vcf.VcfHeaderEntry> headers()Build headers to addvoidinit()Initialize default valuesvoidParse command line argumentsbooleanrun()Annotate each entry of a VCF fileList<org.snpeff.vcf.VcfEntry> run(boolean createList) Run annotationsvoidsetAnnotateEmpty(boolean annotateEmpty) voidShow usage messageMethods inherited from class org.snpsift.SnpSift
addHeaders, annotateFinish, cmd, commandLineStr, databaseDownload, databaseFind, error, getArgs, getConfig, getConfigFile, getOutput, isOpt, loadConfig, main, openVcfInputFile, processVcfHeader, setCommand, setCommand, setConfig, setConfigFile, setDbFileName, setDebug, setQuiet, setSaveOutput, setShowVcfHeader, setShowVersion, setSuppressOutput, setVcfHeaderAddProgramVersion, setVerbose, showCmd, showVersion, unSanitize, usageGenericAndDb
-
Field Details
-
SHOW
public static final int SHOW- See Also:
-
annotateEmpty
protected boolean annotateEmpty -
useId
protected boolean useId -
useInfoField
protected boolean useInfoField -
useRefAlt
protected boolean useRefAlt -
method
protected org.snpsift.SnpSiftCmdAnnotate.AnnotationMethod method -
countBadRef
protected int countBadRef -
maxBlockSize
protected int maxBlockSize -
chrPrev
-
prependInfoFieldName
-
existsInfoField
-
infoFields
-
vcfFile
protected org.snpeff.fileIterator.VcfFileIterator vcfFile -
annotateDb
-
-
Constructor Details
-
SnpSiftCmdAnnotate
public SnpSiftCmdAnnotate() -
SnpSiftCmdAnnotate
-
-
Method Details
-
annotate
public boolean annotate(org.snpeff.vcf.VcfEntry vcfEntry) -
annotateInit
public boolean annotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize database for annotation process- Specified by:
annotateInitin interfaceorg.snpeff.snpEffect.VcfAnnotator- Overrides:
annotateInitin classSnpSift
-
headers
Build headers to add -
init
public void init()Initialize default values -
parseArgs
Parse command line arguments -
run
public boolean run()Annotate each entry of a VCF file -
run
Run annotations- Parameters:
createList- : If true, return a list with all annotated entries (used for test cases invalid input: '&' debugging)
-
setAnnotateEmpty
public void setAnnotateEmpty(boolean annotateEmpty) -
usage
Show usage message
-