Package org.snpeff.snpEffect.commandLine
Class SnpEffCmdEff
java.lang.Object
org.snpeff.SnpEff
org.snpeff.snpEffect.commandLine.SnpEffCmdEff
- All Implemented Interfaces:
CommandLine,VcfAnnotator
Command line program: Predict variant effects
- Author:
- Pablo Cingolani
-
Nested Class Summary
Nested classes/interfaces inherited from class org.snpeff.SnpEff
SnpEff.GeneDatabaseFormat, SnpEff.InputFormat, SnpEff.OutputFormat -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.snpeff.SnpEff
args, BUILD, BUILD_DATE, canonical, canonicalFile, command, COMMAND_LINE_WIDTH, config, configFile, configOverride, customIntervalFiles, dataDir, debug, DEFAULT_COMMAND, download, expandIub, genome, genomeVer, help, hgvs, hgvsForce, hgvsOld, hgvsOneLetterAa, hgvsShift, hgvsTrId, interaction, log, maxTranscriptSupportLevel, motif, multiThreaded, nextProt, nextProtKeepAllTrs, noGenome, numWorkers, onlyProtein, onlyRegulation, onlyTranscriptsFile, output, quiet, regulationTracks, REVISION, saveOutput, shiftArgs, snpEffCmd, SOFTWARE_NAME, spliceRegionExonSize, spliceRegionIntronMax, spliceRegionIntronMin, spliceSiteSize, strict, suppressOutput, treatAllAsProteinCoding, upDownStreamLength, verbose, VERSION, VERSION_AUTHOR, VERSION_BUILD, VERSION_MAJOR, VERSION_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddHeaders(VcfFileIterator vcfFile) Add annotation headers to VCF filebooleanAnnotate: Calculate the effect of variants and show resultsbooleanAnnotate a VCF entrybooleanannotateFinish(VcfFileIterator vcfFile) Finish annotations and create reportsprotected voidannotateInit(String outputFile) Calculate the effect of variants and show resultsbooleanannotateInit(VcfFileIterator vcfFile) Initialize annotator: This method is called after vcfFile is opened, but before the header is output.intvoidParse command line argumentsAdditional values to be reportedbooleanrun()Run according to command line optionsrun(boolean createList) Run according to command line optionsvoidsetFormatVersion(EffFormatVersion formatVersion) voidShow 'usage;' message and exit with an error code '-1'Methods inherited from class org.snpeff.SnpEff
addRegulationTrack, canonical, cmd, commandLineStr, getArgs, getConfig, getConfigFile, getOutput, isOpt, load, loadConfig, loadCustomFile, loadDb, loadMarkers, main, run, setCanonical, setConfig, setConfigFile, setDebug, setGenomeVer, setLog, setNextProt, setNextProtKeepAllTrs, setShiftHgvs, setSpliceSiteSize, setSupressOutput, setUpDownStreamLength, setVerbose, usageDb, usageGeneric, usageGenericAndDbMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.snpeff.snpEffect.commandLine.CommandLine
getArgsMethods inherited from interface org.snpeff.snpEffect.VcfAnnotator
setConfig, setDebug, setVerbose
-
Field Details
-
TEMPLATES_DIR
- See Also:
-
SUMMARY_TEMPLATE
- See Also:
-
SUMMARY_CSV_TEMPLATE
- See Also:
-
SUMMARY_GENES_TEMPLATE
- See Also:
-
DEFAULT_SUMMARY_HTML_FILE
- See Also:
-
DEFAULT_SUMMARY_CSV_FILE
- See Also:
-
DEFAULT_SUMMARY_GENES_FILE
- See Also:
-
SHOW_EVERY
public static final int SHOW_EVERY- See Also:
-
-
Constructor Details
-
SnpEffCmdEff
public SnpEffCmdEff()
-
-
Method Details
-
addHeaders
Description copied from interface:VcfAnnotatorAdd annotation headers to VCF file- Specified by:
addHeadersin interfaceVcfAnnotator- Returns:
- true if OK, false on error
-
annotate
Annotate: Calculate the effect of variants and show results -
annotate
Annotate a VCF entry- Specified by:
annotatein interfaceVcfAnnotator- Returns:
- true if the entry was annotated
-
annotateFinish
Finish annotations and create reports- Specified by:
annotateFinishin interfaceVcfAnnotator- Returns:
- true if OK, false on error
-
annotateInit
Calculate the effect of variants and show results -
annotateInit
Description copied from interface:VcfAnnotatorInitialize annotator: This method is called after vcfFile is opened, but before the header is output. The first vcfEntry might have (and often has) already been read from the file.- Specified by:
annotateInitin interfaceVcfAnnotator- Returns:
- true if OK, false on error
-
getChangeEffectResutStats
-
getTotalErrs
public int getTotalErrs() -
getvariantStats
-
parseArgs
Parse command line arguments- Specified by:
parseArgsin interfaceCommandLine- Overrides:
parseArgsin classSnpEff
-
reportValues
Description copied from class:SnpEffAdditional values to be reported- Overrides:
reportValuesin classSnpEff
-
run
public boolean run()Run according to command line options- Specified by:
runin interfaceCommandLine- Overrides:
runin classSnpEff
-
run
Run according to command line options -
setFormatVersion
-
usage
Show 'usage;' message and exit with an error code '-1'- Specified by:
usagein interfaceCommandLine- Overrides:
usagein classSnpEff- Parameters:
message-
-