new_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
GroupJunctionsGenerator
starting from these junctions and exonsbuilder
()Create
PassedJunctionsGenerator
starting 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
Genes
and 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
connected_exons
exons the connections are associated with (or None otherwise)
denovo
Indicate if each connection is denovo or not
df
xr.Dataset of specified data
end
End coordinate of each region
end_exon_idx
Indicate exon_idx associated with end coordinate
gene_idx
Index of gene on which region is defined
genes
Genes for which these regions are defined
gj_idx
passed_build
Indicate if each connection passed build filters (reliable) or not
simplified
Indicate if each connection is simplified or not
start
Start coordinate of each region
start_exon_idx
Indicate exon_idx associated with start coordinate