new_majiq.GeneIntrons
- class rna_majiq.GeneIntrons(gene_introns)
Collection of introns per gene and their coordinates, flags, and exons
- Parameters:
gene_introns (
_GeneIntrons) – Underlying object binding the internal C++ API
- __init__(gene_introns)
Methods
__init__(gene_introns)Create
GroupIntronsGeneratorto update these introns in placechecksum()Checksum including passed/simplified/connections status
checksum_nodata()Checksum only considering gene_idx, start, and end
connect_exons(exons)Connect regions to specified exons
dst_exon_idx([region_idx])filter_passed([keep_annotated, discard_denovo])Return
GeneIntronssubset that all passed build filtersfrom_arrays(genes, gene_idx, start, end[, ...])Create connections object from
Genesand input arraysfrom_genes(genes[, connected_exons])Empty introns matched to specified genes
from_zarr(store[, genes])Load connections from zarr file or store.
index(gene_idx, start, end)Get indexes of gene regions (-1 if not present)
is_denovo([gi_idx, annotated_introns])Return denovo status of selected introns
overlaps(other[, region_idx])Get mask over region_idx indicating if they overlap regions in other
propagate_through_annotated([...])Propagate introns to annotated exons, then back to current exons.
propagate_to_annotated([annotated_exons, ...])Get
GeneIntronsfor annotated exonsslice_for_gene(gene_idx)src_exon_idx([region_idx])to_zarr(store, mode[, consolidated, drop_vars])Serialize to zarr format.
update_flags_from(donor_introns)Update flags using overlapping donor
GeneIntronsAttributes
connected_exonsexons the connections are associated with (or None otherwise)
denovoIndicate if each connection is denovo or not
dfxr.Dataset of specified data
endEnd coordinate of each region
end_exon_idxIndicate exon_idx associated with end coordinate
gene_idxIndex of gene on which region is defined
genesGenes for which these regions are defined
gi_idxpassed_buildIndicate if each connection passed build filters (reliable) or not
simplifiedIndicate if each connection is simplified or not
startStart coordinate of each region
start_exon_idxIndicate exon_idx associated with start coordinate