API#
Import scMagnify as:
import scmagnify as scm
Models#
|
Class implementing Multi-Scale Gene Regulation Inference (MAGNI). |
|
Generalised VAR (GVAR) model based on self-explaining neural networks, primarily based on the concepts described in [1]_. |
|
Computes the partial ordering of cells using diffusion operators from RNA velocity or pseudotime kernels. |
|
Build chromatin constraints and import them into the analysis. |
|
Import a provided basal GRN and align it to the given AnnData. |
Tools#
|
Select cells along lineage branches using pseudotime and fate probabilities. |
|
Select cells along specified nodes in a PAGA graph. |
|
Test association between genes and pseudotime, and optionally re-filter significant genes. |
|
Build metacells using SEACells for RNA and ATAC modalities in a MuData object. |
|
Calculate the correlation between ATAC-seq peaks and gene expression for a list of genes. |
|
A class for scanning DNA sequences for motifs using position frequency matrices (PFMs). |
|
Converts between different motif file formats. |
|
Calculate centrality measures for all nodes in a directed graph. |
|
A class for performing tensor decomposition on gene regulatory networks to identify regulatory factors (RegFactors). |
|
Extract TFs or TGs with high loadings for each RegFactor and optionally plot their distributions. |
|
Performs Over-Representation Analysis (ORA) to identify enriched biological pathways or gene sets from a given list of genes. |
|
Infer receptor-to-transcription factor (RTF) downstream activity. |
Plotting#
|
Plot top features per group as bar charts. |
|
Plot ranked features per group with label annotations. |
|
Plot a Circos plot for GRN analysis with an optional central embedding scatter plot. |
|
Plot time series for genes as a heatmap. |
|
Plot variable trends along a sorted dimension (e.g., pseudotime). |
|
Plot a PairGrid of the top n-th genes with high-network scores, with isolated plotting parameters and italicized gene labels. |
|
Plot the distribution of multiple parameters with thresholds on separate subplots. |
|
Class for visualizing gene regulatory networks (GRNs) from GRNMuData objects. |
|
A class to visualize genomic loci, including coverage tracks, gene annotations, and other genomic features. |
Settings#
Logging#
Utils#
|
GRNMuData class extends the MuData class to include a Gene Regulatory Network (GRN) and associated TF activity data. |