public final class VariantAnnotator extends Object
Constructor and Description |
---|
VariantAnnotator(ReferenceDictionary refDict,
com.google.common.collect.ImmutableMap<Integer,Chromosome> chromosomeMap,
AnnotationBuilderOptions options)
Construct new VariantAnnotator, given a chromosome map.
|
Modifier and Type | Method and Description |
---|---|
VariantAnnotations |
buildAnnotations(GenomeVariant change)
Main entry point to getting Annovar-type annotations for a variant identified by chromosomal coordinates.
|
VariantAnnotations |
buildAnnotations(int chr,
int position,
String ref,
String alt,
PositionType posType)
Convenience function for obtaining an
VariantAnnotations from genome change in primitive types. |
public VariantAnnotator(ReferenceDictionary refDict, com.google.common.collect.ImmutableMap<Integer,Chromosome> chromosomeMap, AnnotationBuilderOptions options)
refDict
- ReferenceDictionary
with information about the genome.chromosomeMap
- chromosome map to use for the annotator.options
- configuration to use for building the annotationspublic VariantAnnotations buildAnnotations(int chr, int position, String ref, String alt, PositionType posType) throws AnnotationException
VariantAnnotations
from genome change in primitive types.
Forwards to buildAnnotations(int, int, String, String, PositionType)
and we recommend to use this
function directly.position
- The start position of the variant on this chromosome (one-based numbering)ref
- String representation of the reference sequence affected by the variantalt
- String representation of the variant (alt) sequenceposType
- the position type to useVariantAnnotations
for the given genome changeAnnotationException
- on problems building the annotation listpublic VariantAnnotations buildAnnotations(GenomeVariant change) throws AnnotationException
change
- the GenomeVariant
to annotateVariantAnnotations
for the genome changeAnnotationException
- on problems building the annotation listCopyright © 2016. All rights reserved.