Class SnpSiftCmdAnnotateDf
java.lang.Object
org.snpsift.SnpSift
org.snpsift.SnpSiftCmdAnnotateDf
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine, org.snpeff.snpEffect.VcfAnnotator
Annotate a VCF file from another VCF file (database) by creating "DataFrames" for each chromosome.
The database file is loaded into memory.
- Author:
- pcingola
-
Field Summary
Fields inherited from class 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 TypeMethodDescriptionvoidAdd a database filebooleanannotate(org.snpeff.vcf.VcfEntry vcfEntry) booleanbooleanannotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize database for annotation processvoidcreate()Create all databasesprotected List<org.snpeff.vcf.VcfHeaderEntry> headers()Build headers to addvoidinit()InitializevoidParse command line argumentsbooleanrun()Annotate each entry of a VCF fileList<org.snpeff.vcf.VcfEntry> run(boolean createList) Run annotationsvoidShow usage messageMethods inherited from class 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
-
Constructor Details
-
SnpSiftCmdAnnotateDf
public SnpSiftCmdAnnotateDf() -
SnpSiftCmdAnnotateDf
-
-
Method Details
-
add
Add a database file -
annotate
-
annotateFinish
public boolean annotateFinish() -
annotateInit
public boolean annotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize database for annotation process- Specified by:
annotateInitin interfaceorg.snpeff.snpEffect.VcfAnnotator- Overrides:
annotateInitin classSnpSift
-
create
public void create()Create all databases -
headers
-
init
-
parseArgs
-
run
-
run
Run annotations- Parameters:
createList- : If true, return a list with all annotated entries (used for test cases invalid input: '&' debugging)
-
usage
-