Skip to content

mavis/pairing/pairing

product_key()

unique id for the product row

def product_key(bpp: BreakpointPair) -> str:

Args

Returns

  • str

predict_transcriptome_breakpoint()

for a given genomic breakpoint and the target transcript. Predicts the possible transcriptomic breakpoints that would be expected based on the splicing model for abrogated splice sites

def predict_transcriptome_breakpoint(breakpoint: Breakpoint, transcript):

Args

equivalent()

compares two events by breakpoint position to see if they are equivalent

def equivalent(
    event1: BreakpointPair, event2: BreakpointPair, distances=None, matching_event_type=True
) -> bool:

Args

Returns

  • bool

pair_by_distance()

for a set of input calls, pair by distance

def pair_by_distance(
    calls: List[BreakpointPair], distances, against_self: bool = False
) -> Dict[str, Set[str]]:

Args

Returns

  • Dict[str, Set[str]]

inferred_equivalent()

comparison of events using product prediction and breakpoint prediction

def inferred_equivalent(
    event1: BreakpointPair, event2: BreakpointPair, reference_transcripts: Dict, distances=None
) -> bool:

Args

Returns

  • bool