rna_majiq.Events
- class rna_majiq.Events(events)
Collections of introns/junctions all starting or ending at the same exon
- Parameters:
events (
rna_majiq.internals.Events) – Underlying object binding the internal C++ API
See also
Events.from_zarr,ExonConnections.lsvs,ExonConnections.constitutive,PsiCoverage.get_events,PsiControlsSummary.get_events- __init__(events)
Methods
__init__(events)broadcast_eidx_to_ecidx(x[, axis])Broadcast x over events to event connections
connection_contig_idx([ec_idx])Index into self.contigs for selected event connections
connection_denovo([ec_idx])Indicator if connection was denovo for each selected event connection
connection_end([ec_idx])End coordinate for each selected event connection
connection_gene_idx([ec_idx])Index into self.genes for selected event connections
connection_other_exon_idx([ec_idx])Index into self.exons for nonreference exon for each event connection
connection_start([ec_idx])Start coordinate for each selected event connection
connections_slice_for_event(event_idx)Get slice into event connections for event with specified index
e_idx_slice_for_gene(gene_idx)Get slice into events (e_idx) for specified gene
ec_dataframe([annotated, annotated_select])pd.DataFrameover event connections detailing genomic informationec_idx_slice_for_event(e_idx)Get slice into event connections (ec_idx) for specified event
event_has_alt_exons([e_idx])Indicate if events junctions are connected to more than one other exon
event_has_other_alt_ss([e_idx])Indicate if events junctions use >1 splice sites on a non-reference exon
event_has_ref_alt_ss([e_idx])Indicate if events junctions use >1 splice sites on reference exon
event_id([e_idx])Array of event identifiers for VOILA for specified events
event_legacy_a3ss([e_idx])Indicate if event would be called as a3ss by voila v2
event_legacy_a5ss([e_idx])Indicate if event would be called as a5ss by voila v2
from_arrays(introns, junctions, ...)Create
Eventsfrom connections and input arraysfrom_zarr(store, introns, junctions)Load
Eventsfrom specified path/storehas_intron([e_idx])Indicate if selected events have an intron
index(ref_exon_idx, event_type)Get index for specified event in self (-1 if not present)
merge_dataframes(df_seq, events_seq[, annotated])Merge df_seq (index ec_idx, matching events_seq) onto self events
select_eidx_to_select_ecidx(select_eidx)Given index array for e_idx, get index array for associated ec_idx
slice_for_gene(gene_idx)Get slice into events (e_idx) for specified gene
to_zarr(store, mode[, consolidated])Save
Eventsto specified path/storeunique_events_mask(other)Get
UniqueEventsMaskswith shared events and events unique to selfAttributes
connection_e_idxIndex into events for each event connection
Index into self.introns or self.junctions for each event connection
connection_is_intronIndicator if intron/junction for each event connection (alias for is_intron)
Index into self.exons for reference exon for each event connection
contigsContigsover which events definedxr.Datasetwith event and event connections informationdf_event_connectionsxr.Datasetwith event connections informationdf_eventsxr.Datasetwith event informationIndex over unique events
e_idx_endOne-past-end index into events (e_idx) for each gene
e_idx_startFirst index into events (e_idx) for each gene
Index over event connections
One-past-end index into event connections (ec_idx) for each unique event
First index into event connections (ec_idx) for each unique event
event_sizeNumber of event connections for each unique event
Indicator if source ('s') or target ('b') for each unique event
Exonsover which events definedgenesGenesover which events definedIntronsover which events definedIndicator if an intron or junction for each event connection
Junctionsover which events definednum_connectionsTotal number of connections over all events
num_eventsNumber of events
Index into self.exons for reference exon of each unique event
save_dfxr.Datasetthat is directly saved for Events