rna_majiq.GeneJunctions
- class rna_majiq.GeneJunctions(gene_junctions)
Collection of junctions per gene and their coordinates, flags, and exons
- __init__(gene_junctions)
Methods
__init__(gene_junctions)build_group(exons)Create
GroupJunctionsGeneratorstarting from these junctions and exonsbuilder()Create
PassedJunctionsGeneratorstarting from these junctionschecksum()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])from_arrays(genes, gene_idx, start, end[, ...])Create connections object from
Genesand input arraysfrom_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([gj_idx, annotated_junctions])Return denovo status of selected junctions
overlaps(other[, region_idx])Get mask over region_idx indicating if they overlap regions in other
slice_for_gene(gene_idx)src_exon_idx([region_idx])to_zarr(store, mode[, consolidated, drop_vars])Serialize to zarr format.
Attributes
DF_VARSIDX_NAMEZARR_GROUPconnected_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
gj_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