Package org.snpsift
Class SnpSift
java.lang.Object
org.snpsift.SnpSift
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
- Direct Known Subclasses:
SnpSiftCmdAlleleMatrix,SnpSiftCmdAnnotate,SnpSiftCmdAnnotateMem,SnpSiftCmdCaseControl,SnpSiftCmdCaseControlSummary,SnpSiftCmdConcordance,SnpSiftCmdCovarianceMatrix,SnpSiftCmdDbNsfp,SnpSiftCmdExtractFields,SnpSiftCmdFilter,SnpSiftCmdFilterChrPos,SnpSiftCmdFilterGt,SnpSiftCmdGeneSets,SnpSiftCmdGt,SnpSiftCmdGwasCatalog,SnpSiftCmdHwe,SnpSiftCmdIntersect,SnpSiftCmdIntervals,SnpSiftCmdIntervalsIndex,SnpSiftCmdJoin,SnpSiftCmdPedShow,SnpSiftCmdPhastCons,SnpSiftCmdPrivate,SnpSiftCmdRemoveReferenceGenotypes,SnpSiftCmdRmInfo,SnpSiftCmdSort,SnpSiftCmdSplit,SnpSiftCmdTsTv,SnpSiftCmdVarType,SnpSiftCmdVcf2Tped,SnpSiftCmdVcfCheck,SnpSiftCmdVcfOperator
Generic SnpSift tool caller
- Author:
- pablocingolani
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]static final Stringprotected Stringprotected org.snpeff.snpEffect.Configprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected booleanprotected booleanstatic final String[]protected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected StringBuilderprotected booleanstatic final Stringprotected booleanprotected String[]static intprotected booleanprotected booleanstatic final Stringprotected booleanprotected booleanprotected booleanprotected Stringprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddHeaders(org.snpeff.fileIterator.VcfFileIterator vcfFile) Add VCF headersbooleanannotate(org.snpeff.vcf.VcfEntry vcfEntry) booleanannotateFinish(org.snpeff.fileIterator.VcfFileIterator vcfFile) booleanannotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) cmd()Run: Executes the appropriate classprotected StringShow command lineprotected booleanDownload a databaseprotected StringFind database file name.voidShow an error (if not 'quiet' mode)String[]getArgs()org.snpeff.snpEffect.Configprotected List<org.snpeff.vcf.VcfHeaderEntry> headers()Headers to addvoidinit()Initialize default valuesprotected booleanIs this a command line option (e.g.protected voidRead config filestatic voidMainprotected org.snpeff.fileIterator.VcfFileIteratorOpen VCF input filevoidParse command line argumentsprotected StringprocessVcfHeader(org.snpeff.fileIterator.VcfFileIterator vcf) Process VCF header related issuesbooleanrun()voidsetCommand(Class clss) voidsetCommand(String command) voidsetConfig(org.snpeff.snpEffect.Config config) voidsetConfigFile(String configFile) voidsetDbFileName(String dbFileName) voidsetDebug(boolean debug) voidsetQuiet(boolean quiet) voidsetSaveOutput(boolean saveOutput) voidsetShowVcfHeader(boolean showVcfHeader) voidsetShowVersion(boolean showVersion) voidsetSuppressOutput(boolean suppressOutput) voidsetVcfHeaderAddProgramVersion(boolean vcfHeaderAddProgramVersion) voidsetVerbose(boolean verbose) voidshowCmd()Show command linevoidShow version numberunSanitize(String str) Convert a sanitized expression (from Galaxy) back to the original string References: http://www.mail-archive.com/galaxy-dev@lists.bx.psu.edu/msg00530.htmlvoidShow usage messageprotected voidOptions common to all commands
-
Field Details
-
BUILD
- See Also:
-
SOFTWARE_NAME
- See Also:
-
VERSION_MAJOR
- See Also:
-
REVISION
- See Also:
-
VERSION_SHORT
- See Also:
-
VERSION
- See Also:
-
VERSION_NO_NAME
- See Also:
-
SHOW_EVERY_VCFLINES
public static int SHOW_EVERY_VCFLINES -
EMPTY_ARGS
-
dbTabix
protected boolean dbTabix -
debug
protected boolean debug -
download
protected boolean download -
help
protected boolean help -
log
protected boolean log -
needsConfig
protected boolean needsConfig -
needsDb
protected boolean needsDb -
needsGenome
protected boolean needsGenome -
quiet
protected boolean quiet -
saveOutput
protected boolean saveOutput -
showVcfHeader
protected boolean showVcfHeader -
showVersion
protected boolean showVersion -
suppressOutput
protected boolean suppressOutput -
vcfHeaderProcessed
protected boolean vcfHeaderProcessed -
vcfHeaderAddProgramVersion
protected boolean vcfHeaderAddProgramVersion -
verbose
protected boolean verbose -
args
-
command
-
dbFileName
-
dbType
-
genomeVersion
-
vcfInputFile
-
numWorkers
protected int numWorkers -
output
-
errCount
-
config
protected org.snpeff.snpEffect.Config config -
configFile
-
dataDir
-
shiftArgs
-
-
Constructor Details
-
SnpSift
public SnpSift() -
SnpSift
-
-
Method Details
-
main
Main -
addHeaders
public boolean addHeaders(org.snpeff.fileIterator.VcfFileIterator vcfFile) Add VCF headers- Specified by:
addHeadersin interfaceorg.snpeff.snpEffect.VcfAnnotator
-
annotate
public boolean annotate(org.snpeff.vcf.VcfEntry vcfEntry) - Specified by:
annotatein interfaceorg.snpeff.snpEffect.VcfAnnotator
-
annotateFinish
public boolean annotateFinish(org.snpeff.fileIterator.VcfFileIterator vcfFile) - Specified by:
annotateFinishin interfaceorg.snpeff.snpEffect.VcfAnnotator
-
annotateInit
public boolean annotateInit(org.snpeff.fileIterator.VcfFileIterator vcfFile) - Specified by:
annotateInitin interfaceorg.snpeff.snpEffect.VcfAnnotator
-
cmd
Run: Executes the appropriate class -
commandLineStr
Show command line -
databaseDownload
protected boolean databaseDownload()Download a database -
databaseFind
Find database file name. -
error
Show an error (if not 'quiet' mode) -
getArgs
- Specified by:
getArgsin interfaceorg.snpeff.snpEffect.commandLine.CommandLine
-
getConfig
public org.snpeff.snpEffect.Config getConfig() -
getConfigFile
-
getOutput
-
headers
Headers to add -
init
public void init()Initialize default values -
isOpt
Is this a command line option (e.g. "-tfam" is a command line option, but "-" means STDIN) -
loadConfig
protected void loadConfig()Read config file -
openVcfInputFile
protected org.snpeff.fileIterator.VcfFileIterator openVcfInputFile()Open VCF input file -
parseArgs
Parse command line arguments- Specified by:
parseArgsin interfaceorg.snpeff.snpEffect.commandLine.CommandLine
-
processVcfHeader
Process VCF header related issues -
run
public boolean run()- Specified by:
runin interfaceorg.snpeff.snpEffect.commandLine.CommandLine
-
setCommand
-
setCommand
-
setConfig
public void setConfig(org.snpeff.snpEffect.Config config) - Specified by:
setConfigin interfaceorg.snpeff.snpEffect.VcfAnnotator
-
setConfigFile
-
setDbFileName
-
setDebug
public void setDebug(boolean debug) - Specified by:
setDebugin interfaceorg.snpeff.snpEffect.VcfAnnotator
-
setQuiet
public void setQuiet(boolean quiet) -
setSaveOutput
public void setSaveOutput(boolean saveOutput) -
setShowVcfHeader
public void setShowVcfHeader(boolean showVcfHeader) -
setShowVersion
public void setShowVersion(boolean showVersion) -
setSuppressOutput
public void setSuppressOutput(boolean suppressOutput) -
setVcfHeaderAddProgramVersion
public void setVcfHeaderAddProgramVersion(boolean vcfHeaderAddProgramVersion) -
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbosein interfaceorg.snpeff.snpEffect.VcfAnnotator
-
showCmd
public void showCmd()Show command line -
showVersion
public void showVersion()Show version number -
unSanitize
Convert a sanitized expression (from Galaxy) back to the original string References: http://www.mail-archive.com/galaxy-dev@lists.bx.psu.edu/msg00530.html -
usage
Show usage message- Specified by:
usagein interfaceorg.snpeff.snpEffect.commandLine.CommandLine
-
usageGenericAndDb
protected void usageGenericAndDb()Options common to all commands
-