API
Import decoupler as:
import decoupler as dc
Preprocessing:
|
Processes different input types so that they can be used downstream. |
|
Removes sources of a net with less than min_n targets. |
|
Matches mat with a regulatory adjacency matrix. |
|
Renames input network to match decoupler's format (source, target, weight). |
|
Transforms a given network to a regulatory adjacency matrix (targets x sources). |
|
Methods:
|
AUCell. |
|
Gene Set Enrichment Analysis (GSEA). |
|
Gene Set Variation Analysis (GSVA). |
|
Multivariate Decision Tree (MDT). |
|
Multivariate Linear Model (MLM). |
|
Over Representation Analysis (ORA). |
|
Univariate Decision Tree (UDT). |
|
Univariate Linear Model (ULM). |
|
Virtual Inference of Protein-activity by Enriched Regulon (VIPER). |
|
Weighted mean (WMEAN). |
|
Weighted sum (WSUM). |
|
Consensus score from top methods. |
Running multiple methods:
|
Decouple function. |
|
Consensus score between methods. |
|
Run a method without zero values. |
General utils:
|
Function to generate a long format dataframe similar to the one obtained in the R implementation of decoupler. |
Shows available methods. |
|
|
Checks the correlation across the regulators in a network. |
|
Generate a toy mat and net for testing. |
|
Summarizes activities obtained per group by their mean or median and removes features that do not change across samples. |
|
Assigns group labels based on summary activities. |
|
Run a method without zero values. |
|
Benjamini-Hochberg p-value correction for multiple hypothesis testing. |
|
Shuffle network to make it random. |
|
Read a GMT file and return a |
AnnData utils:
|
Extracts activities as AnnData object. |
|
Swaps an |
|
Summarizes expression profiles across cells per sample and group. |
|
Computes Differential Expression Analysis using scanpy's rank_genes_groups function between two conditions from pseudo-bulk profiles. |
|
Return significant target features for a given source and contrast. |
|
Formats the results from get_contrast into a long format data-frame. |
|
Determine which genes have sufficiently large counts to be retained in a statistical analysis. |
|
Determine which genes are expressed in a sufficient proportion of cells across samples. |
|
Associate the data to sample metadata using ANOVA. |
|
Rank sources for characterizing groups. |
Omnipath wrappers:
Shows available resources in Omnipath. |
|
|
Wrapper to access resources inside Omnipath. |
|
Pathway RespOnsive GENes for activity inference (PROGENy). |
|
DoRothEA gene regulatory network. |
|
CollecTRI gene regulatory network. |
|
Translate networks between species by orthology. |
Plotting
|
Plot logFC and p-values. |
|
Plot distribution of features' values per sample. |
|
Plot barplots showing the top absolute value activities. |
|
Plot scatter plot of metrics across two different axes. |
|
Extension of the function plot_metrics_scatter to group metrics by two categories at the same time. |
|
Plot boxplots showing the distribution of scores between methods for a metric. |
|
Quality Control plot to assess the quality of the obtained pseudobulk samples. |
|
Plot to help determining the thresholds of the |
|
Plot to help determining the thresholds of the |
|
Plot logFC and p-values from a long formated data-frame. |
|
Plot the weight and statistic of the target genes of a given source. |
|
Plot the running score of GSEA. |
|
Plot results of enrichment analysis as bars. |
|
Plot results of enrichment analysis as dots. |
|
Create a composite plot displaying association results between scores (bottom) and summary statistics (top) using a clustermap. |
|
Plot results of enrichment analysis as network. |
Metrics
|
Area Under the Receiver Operating characteristic Curve (AUROC) |
|
Area Under the Precision-Recall Curve (AUPRC) |
|
Monte-Carlo Area Under the Receiver Operating characteristic Curve (AUROC) |
|
Monte-Carlo Area Under the Precision-Recall Curve (AUPRC) |
Benchmark utils
|
Generate a toy mat, net and obs for testing the benchmark pipeline. |
Shows available evaluation metrics. |
Benchmark
|
Benchmark methods or networks on a given set of perturbation experiments using activity inference with decoupler. |
|
|
|
Other
|
Wrapper to run ORA for results of differential analysis (long format dataframe). |
|
Wrapper to run GSEA for results of differential analysis (long format dataframe). |