Package org.snpeff.snpEffect
Class VcfAnnotatorChain
java.lang.Object
org.snpeff.snpEffect.VcfAnnotatorChain
- All Implemented Interfaces:
CommandLine,VcfAnnotator
Maintains a list of VcfAnnotators and applies them one by one
in the specified order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(VcfAnnotator vcfAnnotator) Add a new annotatorbooleanaddHeaders(VcfFileIterator vcfFile) Add annotation headers to VCF filebooleanAnnotate a VCF file entrybooleanThis method is called after all annotations have been performed.booleanannotateInit(VcfFileIterator vcfFile) Initialize annotator: This method is called after vcfFile is opened, but before the header is output.String[]getArgs()voidParse command line argumentsbooleanrun()Run the commandvoidSet configurationvoidsetDebug(boolean debug) Set debug modevoidsetVerbose(boolean verbose) Set verbose modevoidShow 'usage' message and exit with an error code '-1'
-
Constructor Details
-
VcfAnnotatorChain
public VcfAnnotatorChain()
-
-
Method Details
-
add
Add a new annotator -
addHeaders
Description copied from interface:VcfAnnotatorAdd annotation headers to VCF file- Specified by:
addHeadersin interfaceVcfAnnotator- Returns:
- true if OK, false on error
-
annotate
Description copied from interface:VcfAnnotatorAnnotate a VCF file entry- Specified by:
annotatein interfaceVcfAnnotator- Returns:
- true if the entry was annotated
-
annotateFinish
Description copied from interface:VcfAnnotatorThis method is called after all annotations have been performed. The vcfFile might have already been closed by this time (i.e. the VcfFileIterator reached the end).- Specified by:
annotateFinishin interfaceVcfAnnotator- Returns:
- true if OK, false on error
-
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
-
getArgs
- Specified by:
getArgsin interfaceCommandLine
-
parseArgs
Description copied from interface:CommandLineParse command line arguments- Specified by:
parseArgsin interfaceCommandLine
-
run
public boolean run()Description copied from interface:CommandLineRun the command- Specified by:
runin interfaceCommandLine
-
setConfig
Description copied from interface:VcfAnnotatorSet configuration- Specified by:
setConfigin interfaceVcfAnnotator
-
setDebug
public void setDebug(boolean debug) Description copied from interface:VcfAnnotatorSet debug mode- Specified by:
setDebugin interfaceVcfAnnotator
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:VcfAnnotatorSet verbose mode- Specified by:
setVerbosein interfaceVcfAnnotator
-
usage
Description copied from interface:CommandLineShow 'usage' message and exit with an error code '-1'- Specified by:
usagein interfaceCommandLine
-