Package org.snpeff
Class SnpEff
java.lang.Object
org.snpeff.SnpEff
- All Implemented Interfaces:
CommandLine
- Direct Known Subclasses:
SnpEffCmdAcat,SnpEffCmdBuild,SnpEffCmdBuildNextProt,SnpEffCmdCds,SnpEffCmdClosest,SnpEffCmdCount,SnpEffCmdDatabases,SnpEffCmdDownload,SnpEffCmdDump,SnpEffCmdEff,SnpEffCmdGenes2Bed,SnpEffCmdGsa,SnpEffCmdLen,SnpEffCmdPdb,SnpEffCmdProtein,SnpEffCmdSeq,SnpEffCmdShow,SnpEffCmdSpliceAnalysis,SnpEffCmdTranslocationsReport
SnpEff's main command line program
- Author:
- pcingola
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable gene database formatsstatic enumAvailable input formatsstatic enumAvailable output formats -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]static final Stringstatic final Stringprotected booleanprotected Stringprotected Stringstatic final intprotected Configprotected Stringprotected Stringprotected booleanstatic final Stringprotected booleanprotected booleanprotected Genomeprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected TranscriptSupportLevelprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected booleanprotected booleanprotected Stringprotected StringBuilderprotected booleanstatic final Stringprotected booleanprotected String[]protected SnpEffstatic final Stringprotected intprotected intprotected intprotected intprotected booleanprotected booleanprotected Booleanprotected intprotected booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegulationTrack(String cellType) protected voidFilter canonical transcriptscmd()Create an appropriate SnpEffCmd* objectprotected StringcommandLineStr(boolean splitLines) Command line argument list (try to fit it into COMMAND_LINE_WIDTH)String[]getArgs()protected booleanIs this a command line option (e.g.voidload()protected voidRead config fileprotected intloadCustomFile(String fileName) Read a custom interval filevoidloadDb()Load databaseprotected MarkersloadMarkers(String fileName) Read markers file Supported formats: BED, TXT, BigBed, GFFstatic voidMainvoidParse command line argumentsAdditional values to be reportedbooleanrun()Run according to command line optionsprotected booleanrun(SnpEff snpEff, String[] args, StringBuilder err) Run a SnpEff (usually a sub-class)voidsetCanonical(boolean canonical) voidvoidsetConfigFile(String configFile) voidsetDebug(boolean debug) voidsetGenomeVer(String genomeVer) voidsetLog(boolean log) voidsetNextProt(boolean nextProt) voidsetNextProtKeepAllTrs(boolean nextProtKeepAllTrs) voidsetShiftHgvs(boolean shiftHgvs) voidsetSpliceSiteSize(int spliceSiteSize) voidsetSupressOutput(boolean suppressOutput) voidsetUpDownStreamLength(int upDownStreamLength) voidsetVerbose(boolean verbose) voidShow 'usage' message and exit with an error code '-1'protected voidusageDb()Show database load and build optionsprotected voidShow generic optionsprotected void
-
Field Details
-
DEFAULT_COMMAND
- See Also:
-
COMMAND_LINE_WIDTH
public static final int COMMAND_LINE_WIDTH- See Also:
-
SOFTWARE_NAME
- See Also:
-
REVISION
- See Also:
-
BUILD
- See Also:
-
BUILD_DATE
- See Also:
-
VERSION_MAJOR
- See Also:
-
VERSION_SHORT
- See Also:
-
VERSION_BUILD
- See Also:
-
VERSION_AUTHOR
- See Also:
-
VERSION
- See Also:
-
command
-
args
-
shiftArgs
-
canonical
protected boolean canonical -
debug
protected boolean debug -
download
protected boolean download -
expandIub
protected boolean expandIub -
help
protected boolean help -
hgvs
protected boolean hgvs -
hgvsForce
protected boolean hgvsForce -
hgvsOneLetterAa
protected boolean hgvsOneLetterAa -
hgvsOld
protected boolean hgvsOld -
hgvsShift
protected boolean hgvsShift -
hgvsTrId
protected boolean hgvsTrId -
interaction
protected boolean interaction -
log
protected boolean log -
motif
protected boolean motif -
multiThreaded
protected boolean multiThreaded -
nextProt
protected boolean nextProt -
nextProtKeepAllTrs
protected boolean nextProtKeepAllTrs -
noGenome
protected boolean noGenome -
onlyProtein
protected boolean onlyProtein -
onlyRegulation
protected boolean onlyRegulation -
quiet
protected boolean quiet -
strict
protected boolean strict -
saveOutput
protected boolean saveOutput -
suppressOutput
protected boolean suppressOutput -
verbose
protected boolean verbose -
treatAllAsProteinCoding
-
numWorkers
protected int numWorkers -
spliceSiteSize
protected int spliceSiteSize -
spliceRegionExonSize
protected int spliceRegionExonSize -
spliceRegionIntronMin
protected int spliceRegionIntronMin -
spliceRegionIntronMax
protected int spliceRegionIntronMax -
upDownStreamLength
protected int upDownStreamLength -
configFile
-
dataDir
-
genomeVer
-
onlyTranscriptsFile
-
canonicalFile
-
maxTranscriptSupportLevel
-
output
-
config
-
genome
-
snpEffCmd
-
customIntervalFiles
-
filterIntervalFiles
-
regulationTracks
-
configOverride
-
-
Constructor Details
-
SnpEff
public SnpEff() -
SnpEff
-
-
Method Details
-
main
Main -
addRegulationTrack
-
canonical
protected void canonical()Filter canonical transcripts -
cmd
Create an appropriate SnpEffCmd* object -
commandLineStr
Command line argument list (try to fit it into COMMAND_LINE_WIDTH) -
getArgs
- Specified by:
getArgsin interfaceCommandLine
-
getConfig
-
getConfigFile
-
getOutput
-
isOpt
Is this a command line option (e.g. "-tfam" is a command line option, but "-" means STDIN) -
load
public void load() -
loadConfig
protected void loadConfig()Read config file -
loadCustomFile
Read a custom interval file -
loadDb
public void loadDb()Load database -
loadMarkers
Read markers file Supported formats: BED, TXT, BigBed, GFF -
parseArgs
Parse command line arguments- Specified by:
parseArgsin interfaceCommandLine
-
reportValues
Additional values to be reported -
run
public boolean run()Run according to command line options- Specified by:
runin interfaceCommandLine
-
run
Run a SnpEff (usually a sub-class) -
setCanonical
public void setCanonical(boolean canonical) -
setConfig
-
setConfigFile
-
setDebug
public void setDebug(boolean debug) -
setGenomeVer
-
setLog
public void setLog(boolean log) -
setNextProt
public void setNextProt(boolean nextProt) -
setNextProtKeepAllTrs
public void setNextProtKeepAllTrs(boolean nextProtKeepAllTrs) -
setShiftHgvs
public void setShiftHgvs(boolean shiftHgvs) -
setSpliceSiteSize
public void setSpliceSiteSize(int spliceSiteSize) -
setSupressOutput
public void setSupressOutput(boolean suppressOutput) -
setUpDownStreamLength
public void setUpDownStreamLength(int upDownStreamLength) -
setVerbose
public void setVerbose(boolean verbose) -
usage
Show 'usage' message and exit with an error code '-1'- Specified by:
usagein interfaceCommandLine
-
usageDb
protected void usageDb()Show database load and build options -
usageGeneric
protected void usageGeneric()Show generic options -
usageGenericAndDb
protected void usageGenericAndDb()
-