variant module¶
-
class
mavis.annotate.variant.
Annotation
(bpp, transcript1=None, transcript2=None, data={}, event_type=None, proximity=5000)[source]¶ Bases:
mavis.breakpoint.BreakpointPair
a fusion of two transcripts created by the associated breakpoint_pair will also hold the other annotations for overlapping and encompassed and nearest genes
Holds a breakpoint call and a set of transcripts, other information is gathered relative to these
Parameters: - bpp (BreakpointPair) – the breakpoint pair call. Will be adjusted and then stored based on the transcripts
- transcript1 (Transcript) – transcript at the first breakpoint
- transcript2 (Transcript) – Transcript at the second breakpoint
- data (dict) – optional dictionary to hold related attributes
- event_type (SVTYPE) – the type of event
-
class
mavis.annotate.variant.
FusionTranscript
[source]¶ Bases:
mavis.annotate.genomic.usTranscript
-
classmethod
build
(ann, REFERENCE_GENOME, min_orf_size=None, max_orf_cap=None, min_domain_mapping_match=None)[source]¶ Parameters: - ann (Annotation) – the annotation object we want to build a FusionTranscript for
- REFERENCE_GENOME (
dict
ofBio.SeqRecord
bystr
) – dict of reference sequence by template/chr name
Returns: the newly built fusion transcript
Return type:
-
exon_number
(exon)[source]¶ Parameters: exon (Exon) – the exon to be numbered Returns: the number of the exon in the original transcript (prior to fusion) Return type: int
-
classmethod
-
mavis.annotate.variant.
annotate_events
(bpps, annotations, reference_genome, max_proximity=5000, min_orf_size=200, min_domain_mapping_match=0.95, max_orf_cap=3, log=<function <lambda>>)[source]¶
-
mavis.annotate.variant.
determine_prime
(transcript, breakpoint)[source]¶ determine the side of the transcript 5’ or 3’ which is ‘kept’ given the breakpoint
Parameters: - transcript (Transcript) – the transcript
- breakpoint (Breakpoint) – the breakpoint
Returns: 5’ or 3’
Return type: Raises: AttributeError
– if the orientation of the breakpoint or the strand of the transcript is not specified
-
mavis.annotate.variant.
overlapping_transcripts
(ref_ann, breakpoint)[source]¶ Parameters: - ref_ann (
dict
oflist
ofGene
bystr
) – the reference list of genes split by chromosome - breakpoint (Breakpoint) – the breakpoint in question
Returns: a list of possible transcripts
Return type: list
ofusTranscript
- ref_ann (