call module¶
-
class
mavis.validate.call.
EventCall
(b1, b2, source_evidence, event_type, call_method, break2_call_method=None, contig=None, contig_alignment=None, untemplated_seq=None)[source]¶ Bases:
mavis.breakpoint.BreakpointPair
class for holding evidence and the related calls since we can’t freeze the evidence object directly without a lot of copying. Instead we use call objects which are basically just a reference to the evidence object and decisions on class, exact breakpoints, etc
Parameters: - evidence (Evidence) – the evidence object we are calling based on
- event_type (SVTYPE) – the type of structural variant
- breakpoint_pair (BreakpointPair) – the breakpoint pair representing the exact breakpoints
- call_method (CALL_METHOD) – the way the breakpoints were called
- contig (Contig) – the contig used to call the breakpoints (if applicable)
-
add_flanking_support
(flanking_pairs)[source]¶ counts the flanking read-pair support for the event called. The original source evidence may have contained evidence for multiple events and uses a larger range so flanking pairs here are checked specifically against the current breakpoint call
Returns: Return type: tuple
-
flanking_metrics
()[source]¶ computes the median and standard deviation of the flanking pairs. Note that standard deviation is calculated wrt the median and not the average. Also that the fragment size is calculated as a range so the start and end of the range are used in computing these metrics
Returns: float
- the median fragment sizefloat
- the fragment size standard deviation wrt the median
Return type: tuple