You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
### Added
9
9
10
+
-[[#510]](https://github.com/nf-core/differentialabundance/pull/510) - Add decoupler module to differential functional enrichment subworkflow. ([@antoniasaracco](https://github.com/antoniasaracco), review by [@pinin4fjords](https://github.com/pinin4fjords) and [@grst](https://github.com/grst)).
11
+
10
12
-[[#473](https://github.com/nf-core/differentialabundance/pull/473)] - Allow formula-based contrasts in DESEQ2. ([@atrigila](https://github.com/atrigila), review by [@pinin4fjords](https://github.com/pinin4fjords) and [@grst](https://github.com/grst)).
11
13
-[[#443](https://github.com/nf-core/differentialabundance/pull/443)] - Add toolsheet-related implementations. ([@suzannejin](https://github.com/suzannejin), review by [@pinin4fjords](https://github.com/pinin4fjords), [@mirpedrol](https://github.com/mirpedrol) and [@JoseEspinosa](https://github.com/JoseEspinosa))
12
14
-[[#450](https://github.com/nf-core/differentialabundance/pull/441)] - Allow usage of strings for makeContrasts in DREAM. ([@atrigila](https://github.com/atrigila), review by [@pinin4fjords](https://github.com/pinin4fjords), [@suzannejin](https://github.com/suzannejin) and [@grst](https://github.com/grst)).
Copy file name to clipboardExpand all lines: docs/output.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ Stand-alone graphical outputs are placed in this directory. They may be useful i
49
49
-`[contrast]/[norm_function].normalized_mean_variance_relationship.png`: Plots of log intensity vs mean log intensity after normalization of each contrast level.
50
50
-`[contrast]/[norm_function].normalized_distributions.png`: A plot of sample distributions after normalization.
51
51
-`[contrast]/raw_distributions.png`: A plot of sample distributions without normalization.
52
-
53
-
</details>
52
+
-`decoupler/`: Directory containing plots of decoupler results - `[differential_method]_[contrast_name]_[decoupler_method]_estimate_decoupler_plot.png`: contains the plot for the estimated activity scores for each regulator (rows) across all samples (columns).
53
+
</details>
54
54
55
55
Most plots are included in the HTML report (see above), but are also included in static files in this folder to facilitate use in external reporting.
56
56
@@ -78,6 +78,9 @@ Most plots are included in the HTML report (see above), but are also included in
78
78
-`gprofiler2/`: Directory containing tables of differential gene set analyis from gprofiler2 (where enabled)
79
79
-`[contrast]/[contrast].gprofiler2.all_enriched_pathways.tsv`: A gprofiler2 report table for all enrichment results
80
80
-`[contrast]/[contrast].gprofiler2.[source].sub_enriched_pathways.tsv`: A gprofiler2 report table of enriched pathways from one specific source/database, e.g. REAC
81
+
-`decoupler/`: Directory containing tables of decoupler results
82
+
-`[differential_method]_[contrast_name]_[decoupler_method]_estimate_decoupler.tsv`: contains the estimated activity scores for each regulator (rows) across all samples (columns).
83
+
-`[differential_method]_[contrast_name]_[decoupler_method]_pvals_decoupler.tsv`: contains the associated p-values for those activity scores, when the method supports statistical significance estimation.
81
84
-`proteus/`: If `--study_type maxquant`: Directory containing abundance values produced by the proteus module which is used for processing MaxQuant input. Files are prefixed with the associated contrast and chosen normalization function (if any).
82
85
-`[contrast]/[norm_function].normalized_proteingroups_tab.tsv`: Abundance table after normalization.
83
86
-`[contrast]/raw_proteingroups_tab.tsv`: Abundance table without normalization.
Copy file name to clipboardExpand all lines: docs/usage.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,6 +410,53 @@ By default the analysis will be run with a background list of genes that passed
410
410
411
411
Check the [pipeline webpage](https://nf-co.re/differentialabundance/parameters#gprofiler2) for a full listing of the relevant parameters.
412
412
413
+
### Decoupler
414
+
415
+
[Decoupler](https://decoupler-py.readthedocs.io/en/latest/index.html) `decoupler.decouple` is a Python function that infers biological regulator activities—such as transcription factor or pathway activity—from omics data using multiple statistical enrichment methods. It takes as input a gene expression matrix and a prior knowledge network linking regulators to target genes, and applies one or more methods (e.g., ULM, MLM, wsum) to estimate regulator activity scores across samples. The function supports optional consensus scoring and outputs method-specific activity estimates and p-values, making it a versatile tool for activity inference in both bulk and single-cell datasets. If you want to see the full list of available methods and functions, refer to the functions's [official guide]("https://decoupler-py.readthedocs.io/en/latest/generated/decoupler.decouple.html#decoupler.decouple").
416
+
417
+
This tool is turned off by default, to turn it on set the parameter `functional_method` to `decoupler`.
418
+
419
+
#### Input Files
420
+
421
+
Decoupler needs a matrix (mat) of molecular readouts (gene expression, logFC, p-values, etc.) and a network (net) that relates target features (genes, proteins, etc.) to “source” biological entities (pathways, transcription factors, molecular processes, etc.).
422
+
423
+
- The matrix will be taken from the results of the differential expression analysis performed by DESeq2, limma, propr, or variancePartition.
424
+
425
+
- The network file must be provided explicitly via the '--decoupler_network' parameter. This file should be in long format and contain at least the source and target columns, with optional weight and sign columns describing the strength and direction of each interaction.
426
+
427
+
#### Parameters
428
+
429
+
The Decoupler module includes a min_n parameter to fine-tune its behavior.
430
+
431
+
- `--decoupler_min_n`: This parameter controls the minimum number of targets a regulator (source) must have in the network to be included in the analysis. Any regulator with fewer than min_n targets will be removed from the network before activity inference is performed.
432
+
433
+
By default, `--decoupler_min_n` is set to 5, meaning all sources with at least one target will be evaluated. You can increase this value to filter out poorly supported regulators and reduce noise.
434
+
435
+
Example: setting `--decoupler_min_n 5` will ensure that only regulators with at least 5 target genes are considered.
436
+
437
+
- `--decoupler_methods`: This parameter lets you specify which statistical methods decoupler will use to estimate regulator activities. Decoupler supports multiple methods, each using a different algorithm or statistical approach. You can specify one or more methods by passing them as a comma-separated list.
438
+
439
+
Example: `--decoupler_methods`mlm,ulsm
440
+
441
+
##### Network Sources
442
+
443
+
You can obtain regulatory networks from well-established databases and tools. Common examples include:
If you want to see the full list of available methods and functions, refer to the functions's [official guide] (https://decoupler-py.readthedocs.io/en/latest/notebooks/benchmark.html#Multiple-networks).
452
+
453
+
**Note**: Then resources mentioned above are provided only for human or mouse datasets. Please ensure your organism is compatible before enabling this module or provide a custom, species-specific dataset.
454
+
455
+
```bash
456
+
--functional_method decoupler \
457
+
--decoupler_network network.tsv
458
+
```
459
+
413
460
## Running the pipeline
414
461
415
462
The typical command for running the pipeline is as follows:
0 commit comments