Package org.snpsift
Class SnpSiftCmdVcfOperator
java.lang.Object
org.snpsift.SnpSift
org.snpsift.SnpSiftCmdVcfOperator
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
Annotate a field based on an operation (max, min, etc.) of other VCF fields
- Author:
- pcingola
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected String[]protected SnpSiftCmdVcfOperator.Operatorprotected StringFields 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) String[]getArgs()getValues(org.snpeff.vcf.VcfEntry vcfEntry) Parse an INFO field (can be multiple valued) and return a list of Doubleprotected List<org.snpeff.vcf.VcfHeaderEntry> headers()Headers to addprotected doublevoidParse command line argumentsbooleanrun()AnnotateList<org.snpeff.vcf.VcfEntry> run(boolean createList) Run filtervoidShow usage messageMethods inherited from class org.snpsift.SnpSift
addHeaders, annotateFinish, annotateInit, cmd, commandLineStr, databaseDownload, databaseFind, error, getConfig, getConfigFile, getOutput, init, isOpt, loadConfig, main, openVcfInputFile, processVcfHeader, setCommand, setCommand, setConfig, setConfigFile, setDbFileName, setDebug, setQuiet, setSaveOutput, setShowVcfHeader, setShowVersion, setSuppressOutput, setVcfHeaderAddProgramVersion, setVerbose, showCmd, showVersion, unSanitize, usageGenericAndDb
-
Field Details
-
fields
-
outField
-
operator
-
infoFields
-
-
Constructor Details
-
SnpSiftCmdVcfOperator
public SnpSiftCmdVcfOperator() -
SnpSiftCmdVcfOperator
-
-
Method Details
-
annotate
public boolean annotate(org.snpeff.vcf.VcfEntry vcfEntry) -
applyOp
-
getArgs
-
getValues
-
getValues
Parse an INFO field (can be multiple valued) and return a list of Double -
headers
Description copied from class:SnpSiftHeaders to add -
initialValue
protected double initialValue() -
parseArgs
Description copied from class:SnpSiftParse command line arguments -
run
public boolean run()Annotate -
run
Run filter- Parameters:
createList- : If true, create a list with the results. If false, show results on STDOUT- Returns:
- If 'createList' is true, return a list containing all vcfEntries that passed the filter. Otherwise return null.
-
usage
Description copied from class:SnpSiftShow usage message
-