Package org.snpsift
Class SnpSiftCmdDbNsfp
java.lang.Object
org.snpsift.SnpSift
org.snpsift.SnpSiftCmdDbNsfp
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
Annotate a VCF file with dbNSFP.
The dbNSFP is an integrated database of functional predictions from multiple algorithms for the comprehensive
collection of human non-synonymous SNPs (NSs).
References:
http://sites.google.com/site/jpopgen/dbNSFP
Paper: Liu X, Jian X, and Boerwinkle E. 2011. dbNSFP: a lightweight database of human non-synonymous SNPs and their functional predictions. Human Mutation. 32:894-899.
- Author:
- lletourn
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanfinal Stringprotected intprotected intprotected intprotected DbNsfpEntryprotected DbNsfpstatic final Stringstatic final Stringprotected Stringprotected booleanstatic final intstatic final intprotected booleanprotected org.snpeff.fileIterator.VcfFileIteratorprotected 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 TypeMethodDescriptionbooleanaddHeaders(org.snpeff.fileIterator.VcfFileIterator vcfFile) Add some lines to header before showing itbooleanAnnotate a VCF entrybooleanannotate(org.snpeff.vcf.VcfEntry vcfEntry) booleanannotateFinish(org.snpeff.fileIterator.VcfFileIterator vcfFile) booleanannotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize annotation processvoidCheck that all fields to add are availablevoidinit()Initialize default valuesvoidParse command line argumentsbooleanrun()List<org.snpeff.vcf.VcfEntry> run(boolean createList) Run annotation algorithmvoidsetFieldsNamesToAdd(String fieldsNamesToAdd) voidsetTabixCheck(boolean tabixCheck) voidShow usage messageMethods inherited from class org.snpsift.SnpSift
cmd, commandLineStr, databaseDownload, databaseFind, error, getArgs, getConfig, getConfigFile, getOutput, headers, isOpt, loadConfig, main, openVcfInputFile, processVcfHeader, setCommand, setCommand, setConfig, setConfigFile, setDbFileName, setDebug, setQuiet, setSaveOutput, setShowVcfHeader, setShowVersion, setSuppressOutput, setVcfHeaderAddProgramVersion, setVerbose, showCmd, showVersion, unSanitize, usageGenericAndDb
-
Field Details
-
DBNSFP_VCF_INFO_PREFIX
- See Also:
-
DEFAULT_FIELDS_NAMES_TO_ADD
- See Also:
-
MIN_JUMP
public static final int MIN_JUMP- See Also:
-
SHOW_EVERY
public static final int SHOW_EVERY- See Also:
-
CONFIG_DBNSFP_DB_NAME
- See Also:
-
fieldsToAdd
-
fieldsDescription
-
fieldsType
-
annotateEmpty
protected boolean annotateEmpty -
annotateMissing
protected boolean annotateMissing -
collapseRepeatedValues
protected boolean collapseRepeatedValues -
inverseFieldSelection
protected boolean inverseFieldSelection -
tabixCheck
protected boolean tabixCheck -
vcfFileName
-
count
protected int count -
countAnnotated
protected int countAnnotated -
countVariants
protected int countVariants -
dbNsfp
-
vcfFile
protected org.snpeff.fileIterator.VcfFileIterator vcfFile -
currentDbEntry
-
fieldsNamesToAdd
-
-
Constructor Details
-
SnpSiftCmdDbNsfp
public SnpSiftCmdDbNsfp() -
SnpSiftCmdDbNsfp
-
-
Method Details
-
addHeaders
public boolean addHeaders(org.snpeff.fileIterator.VcfFileIterator vcfFile) Add some lines to header before showing it- Specified by:
addHeadersin interfaceorg.snpeff.snpEffect.VcfAnnotator- Overrides:
addHeadersin classSnpSift
-
annotate
Annotate a VCF entry- Parameters:
info- Add values to 'info' map. Note that we may have some previous values in the map- Returns:
- True if entries were added to the map
-
annotate
public boolean annotate(org.snpeff.vcf.VcfEntry vcfEntry) -
annotateFinish
public boolean annotateFinish(org.snpeff.fileIterator.VcfFileIterator vcfFile) - Specified by:
annotateFinishin interfaceorg.snpeff.snpEffect.VcfAnnotator- Overrides:
annotateFinishin classSnpSift
-
annotateInit
public boolean annotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) Initialize annotation process- Specified by:
annotateInitin interfaceorg.snpeff.snpEffect.VcfAnnotator- Overrides:
annotateInitin classSnpSift
-
checkFieldsToAdd
Check that all fields to add are available- Throws:
IOException
-
getFieldsType
-
init
public void init()Initialize default values -
parseArgs
Parse command line arguments -
run
public boolean run() -
run
Run annotation algorithm -
setFieldsNamesToAdd
-
setTabixCheck
public void setTabixCheck(boolean tabixCheck) -
usage
Show usage message
-