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 TypeMethodDescriptionvoid
add
(VcfAnnotator vcfAnnotator) Add a new annotatorboolean
addHeaders
(VcfFileIterator vcfFile) Add annotation headers to VCF fileboolean
Annotate a VCF file entryboolean
This method is called after all annotations have been performed.boolean
annotateInit
(VcfFileIterator vcfFile) Initialize annotator: This method is called after vcfFile is opened, but before the header is output.String[]
getArgs()
void
Parse command line argumentsboolean
run()
Run the commandvoid
Set configurationvoid
setDebug
(boolean debug) Set debug modevoid
setVerbose
(boolean verbose) Set verbose modevoid
Show '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:VcfAnnotator
Add annotation headers to VCF file- Specified by:
addHeaders
in interfaceVcfAnnotator
- Returns:
- true if OK, false on error
-
annotate
Description copied from interface:VcfAnnotator
Annotate a VCF file entry- Specified by:
annotate
in interfaceVcfAnnotator
- Returns:
- true if the entry was annotated
-
annotateFinish
Description copied from interface:VcfAnnotator
This 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:
annotateFinish
in interfaceVcfAnnotator
- Returns:
- true if OK, false on error
-
annotateInit
Description copied from interface:VcfAnnotator
Initialize 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:
annotateInit
in interfaceVcfAnnotator
- Returns:
- true if OK, false on error
-
getArgs
- Specified by:
getArgs
in interfaceCommandLine
-
parseArgs
Description copied from interface:CommandLine
Parse command line arguments- Specified by:
parseArgs
in interfaceCommandLine
-
run
public boolean run()Description copied from interface:CommandLine
Run the command- Specified by:
run
in interfaceCommandLine
-
setConfig
Description copied from interface:VcfAnnotator
Set configuration- Specified by:
setConfig
in interfaceVcfAnnotator
-
setDebug
public void setDebug(boolean debug) Description copied from interface:VcfAnnotator
Set debug mode- Specified by:
setDebug
in interfaceVcfAnnotator
-
setVerbose
public void setVerbose(boolean verbose) Description copied from interface:VcfAnnotator
Set verbose mode- Specified by:
setVerbose
in interfaceVcfAnnotator
-
usage
Description copied from interface:CommandLine
Show 'usage' message and exit with an error code '-1'- Specified by:
usage
in interfaceCommandLine
-