public abstract class AbstractDBAnnotationDriver<RecordType> extends Object implements DBAnnotationDriver
Constructor and Description |
---|
AbstractDBAnnotationDriver(String vcfPath,
String fastaPath,
DBAnnotationOptions options,
VariantContextToRecordConverter<RecordType> vcToRecord)
Create annotation driver for a coordinate-sorted, bgzip-compressed, VCF file
|
Modifier and Type | Method and Description |
---|---|
htsjdk.variant.variantcontext.VariantContext |
annotateVariantContext(htsjdk.variant.variantcontext.VariantContext obsVC)
Annotate the
VariantContext object using the information in the database. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constructVCFHeaderExtender
public AbstractDBAnnotationDriver(String vcfPath, String fastaPath, DBAnnotationOptions options, VariantContextToRecordConverter<RecordType> vcToRecord) throws JannovarVarDBException
fastaPath
- FAI-indexed FASTA file with referencevcfPath
- Path to VCF file with dbSNP.options
- configurationvcToRecord
- converter from VariantContext
to record typeJannovarVarDBException
- on problems loading the reference FASTA/FAI file or incompatible dbSNP versionpublic htsjdk.variant.variantcontext.VariantContext annotateVariantContext(htsjdk.variant.variantcontext.VariantContext obsVC)
DBAnnotationDriver
VariantContext
object using the information in the database.
Note that the annotation in jannovar-vardbs makes a distinction between variants that are in the database and
variants that are only at the same position or overlap.annotateVariantContext
in interface DBAnnotationDriver
obsVC
- VariantContext
to annotateVariantContext
objectCopyright © 2016. All rights reserved.