rna_majiq.SpliceGraph
- class rna_majiq.SpliceGraph(sg)
Representation of all possible splicing changes in each gene.
Representation of splicing in each gene as exons connected by spliced junctions and retained introns. This representation is composed of:
the collection of all
Contigs
(e.g. chromosomes) on which genes can be defined (SpliceGraph.contigs
),the collection of all
Genes
and their coordinates on the splicegraph contigs (SpliceGraph.genes
),the collection of all
Exons
for each gene (SpliceGraph.exons
),the collection of all
GeneIntrons
for each gene (SpliceGraph.introns
),the collection of all
GeneJunctions
for each gene (SpliceGraph.junctions
),ExonConnections
associating introns and junctions to source and target exons, enabling the identification of splicing events, e.g. LSVs (SpliceGraph.exon_connections
).
- Parameters:
sg (
rna_majiq.internals.SpliceGraph
) – Underlying object binding the internal C++ API
See also
SpliceGraph.from_gff3
Initialize
SpliceGraph
from GFF3 fileSpliceGraph.from_components
Construct
SpliceGraph
from componentsSpliceGraph.from_zarr
Load
SpliceGraph
saved in Zarr format
- __init__(sg)
Construct
SpliceGraph
using object from internal C++ API- Parameters:
sg (
rna_majiq.internals.SpliceGraph
) – Underlying object binding the internal C++ API
Methods
__init__
(sg)Construct
SpliceGraph
using object from internal C++ APIcombine
(make_annotated, keep_denovo[, ...])Combine input splicegraphs into single
SpliceGraph
.from_components
(contigs, genes, exons, ...)Construct
SpliceGraph
with given componentsfrom_gff3
(path[, process_ir, gff3_types, ...])Create
SpliceGraph
from GFF3 transcriptome annotationsfrom_zarr
(store[, genes])Load
SpliceGraph
from specified path/storeget_gene_view
([gene_idx, gene_id, gene_name])Get view into specific gene (requires matplotlib)
modules
([sg_mask])Create
GeneModules
over this splicegraph with maskto_sqlite
(path[, genome_name])Save splicegraph to legacy format
to_zarr
(store[, mode])Save
SpliceGraph
to specified path/storewith_updated_exon_connections
(exon_connections)Create
SpliceGraph
from exon connections with same genesAttributes
contigs
The collection of all
Contigs
on which genes can be definedexon_connections
ExonConnections
for the splicegraphexons
The collection of all
Exons
for each genegenes
The collection of all
Genes
and their coordinates on contigsintrons
The collection of all
GeneIntrons
for each genejunctions
The collection of all
GeneJunctions
for each gene