rna_majiq.SJExperiment
- class rna_majiq.SJExperiment(introns, junctions)
Spliced junction and retained intron coverage for the same experiment.
Junctions and retained introns are defined over contigs, not genes (i.e.
ContigIntrons,ContigJunctions, notGeneIntrons,GeneJunctions). Coverage assigned to these regions is later mapped to their gene equivalents (matching contig and strand; matching coordinates for junctions, matching annotated status and overlapping coordinates for introns).Coverage is obtained over unique bins. Bins represent positions at which the start of the feature would intersect the aligned read. In the case of junctions, there is a single bin for each possible position, so the total number of bins/positions is determined by the maximum read length. For introns, nonzero length increases the total number of possible positions. In order to treat introns and junctions similarly, MAJIQ groups together contiguous positions into the same number of bins as junctions.
This is represented by:
SJIntronsBinswith intron coverage and assigned regions (SJExperiment.introns),SJJunctionsBinswith junction coverage and assigned regions (SJExperiment.junctions).
- Parameters:
introns (
rna_majiq.SJIntronsBins)junctions (
rna_majiq.SJJunctionsBins)
See also
SJExperiment.from_bamLoad
SJExperimentfrom BAM fileSJExperiment.from_zarrLoad
SJExperimentsaved to Zarr file
- __init__(introns, junctions)
Initialize
SJExperimentwith intron and junction coverage- Parameters:
introns (
rna_majiq.SJIntronsBins)junctions (
rna_majiq.SJJunctionsBins)
Notes
Enforces requirement that introns and junctions share the same original (bam) path and version of majiq used to do parsing
Methods
__init__(introns, junctions)Initialize
SJExperimentwith intron and junction coveragedetect_strand(sj_junctions, sg[, minreads, ...])Return
SJJunctionsBinswith appropriate strandnessfrom_SJJunctionsBins(junctions)Return
SJExperimentwith junction coverage, no intronsfrom_bam(path, sg[, strandness, nthreads, ...])Load
SJExperimentfrom BAM filefrom_zarr(store)Load
SJExperimentfrom specified pathprefix_from_zarr(path)Extract prefix from SJExperiment zarr path without loading entire file
rename_prefix(new_prefix)Create updated
SJExperimentwith renamed prefixto_zarr(store[, mode, consolidated])Save
SJExperimentto specified path/storeAttributes
SJIntronsBinswith intron coverage for this experimentSJJunctionsBinswith junctioncoverage for this experimentoriginal_pathPath to BAM file that was processed for coverage
original_versionVersion of MAJIQ that was used to process the coverage
prefixExperiment name associated with this
SJExperiment