Skip to content

Commit 48ecbce

Browse files
committed
Updated docs
1 parent 0932fb5 commit 48ecbce

24 files changed

Lines changed: 647 additions & 135 deletions

CHANGELOG.md

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,69 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11-
## [Unreleased]
11+
## 2.0.0
12+
13+
Major update to accomodate the scverse :cite:`scverse` template.
14+
15+
All functions have been rewritten to follow the new API, errors when running previous versions (`1.X.X`) are expected if `decoupler >= 2.0.0` is installed.
16+
17+
### Changes
18+
19+
- Methods are now in the `mt` module and are built from shared class `Method`
20+
- Use `decoupler.mt.<method_name>` to call a method
21+
- `min_n` argument has been renamed `tmin`
22+
- New argument `bsize` allows to run a method with batches in case excessive memory usage is an issue
23+
- :math:`p_{values}` of the enrichment scores are now corrected by Benjamini-Hochberg
24+
- `mdt` and `udt` are now based on `xgboost` instead of `sklearn` for better scalability. `udt` statistic is now the coefficient of determination :math:`R^2` instead of the importance of a single decision tree.
25+
- `ora` now returns the odds ratio of the contingency table as a statistic, and computes a two-sided Fisher exact test instead of a one-sided one
26+
- `viper` now correctly estimates shadow regulons when network weights are values other than -1 or +1
27+
- `wsum` and `wmean` are deprecated, instead now the method `waggr` allows to run both methods and any custom function. This makes it easier to quickly test new enrichment methods without having to deal with `decoupler`'s implementation
28+
- Databases from Omnipath can now be accessed through the new `op` module
29+
- Use `decoupler.op.<resource_name>` to access a database
30+
- Removed the `omnipath` package as a dependancy
31+
- Fixed `collectri` to the publication version instead of the OmniPath one
32+
- Made `progeny` only return significant genes by default instead of the top N genes per pathway
33+
- Plots are now in a new `pl` module
34+
- Use `decoupler.pl.<plot_name>` to call a plot
35+
- They use a common class `Plotter` to make it easier to share arguments between them
36+
- `plot_violins` has been deprecated
37+
- Names that have changed
38+
- `plot_psbulk_samples` to `filter_samples`
39+
- `plot_running_score` to `leading_edge`
40+
- `plot_associations` to `obsm`
41+
- `plot_targets` to `source_targets`
42+
- Preprocessing functions are now in the new `pp` module
43+
- Renamed `check_corr` to `net_corr`, now also returns adjusted :math:`p_{values}`
44+
- Renamed `get_acts` to `get_obsm`
45+
- Renamed `get_pseudobulk` to `pseudobulk`. Now it does not automatically remove low quality samples, this is now done with the function `filter_samples`
46+
- Deprecated `get_contrast`, `get_top_targets` and `format_contrast_results`. `PyDESeq2` should be used instead
47+
- Moved `rank_sources_groups` to the new `tl` module as `rankby_group`
48+
- Moved `get_metadata_associations` to the new `tl` module as `rankby_obsm`
49+
- Moved the benchmarking pipeline inside a new `bm` module, with its metrics and plotting functions in further submodules (`bm.metric` and `bm.pl`)
1250

1351
### Added
1452

15-
- Basic tool, preprocessing and plotting functions
53+
- `ds` module with functions to download several datasets at different resolutions
54+
- Bulk: `hsctgfb` and `knocktf`
55+
- Single-cell: `pbmc3k`, `covid5k` and `erygast1k`
56+
- Spatial: `msvisium`
57+
- Toy data: `toy` and `toy_bench`
58+
- Utils: `ensmbl_to_symbol`
59+
- New database functions in the `op` module
60+
- Added `hallmark` as a custom resource
61+
- New plotting funcitons in the `pl` module
62+
- Added `obsbar` to plot size of metadata columns in `anndata.AnnData.obs`
63+
- Added `order` to plot sources or features along a continous process such as a trajectory
64+
- Added `order_targets` to plot the targets of a given source along a continous process
65+
-
66+
- New preprocessing functions in the `pp` module
67+
- Added two functions to format networks, `adjmat` to return an adjacency matrix, and `idxmax` to return a list of sets
68+
- Added `filter_samples` to filter pseudobulk profiles after running `pseudobulk`
69+
- Added `knn` to calculate K-Nearest Neighbors similarities based on spatial distances
70+
- Added `bin_order` to bin features across a continous process
71+
- `tl` module with functions to perform statistical tests
72+
- Added `rankby_order` to test for non-linear associations of features with a continous process
73+
- New benchmarking metrics and plotting related functions in the `bm` module
74+
- Added two more metrics, `F-score` and `qrank`
75+
- Added shared plots for metrics, `bm.pl.auc`, `bm.pl.fscore` and `bm.pl.qrank`
76+
- Added a summary plot across metrics `bm.pl.summary`

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# decoupler - Ensemble of methods to infer enrichment scores <img src="https://github.com/saezlab/decoupleR/blob/master/inst/figures/logo.svg?raw=1" align="right" width="120" class="no-scaled-link" />
1+
# decoupler - Ensemble of methods to infer enrichment scores
2+
<img src="https://github.com/saezlab/decoupleR/blob/master/inst/figures/logo.svg?raw=1" align="right" width="120" class="no-scaled-link" />
3+
24

35
[![Tests][badge-tests]][tests]
46
[![Documentation][badge-docs]][documentation]

docs/_static/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
div.cell_output table.dataframe {
33
font-size: 0.8em;
44
}
5+
6+
/* Adjust the logo size */
7+
.logo img {
8+
width: 50%; /* or any percentage you want */
9+
height: auto; /* maintain aspect ratio */
10+
}
11+
12+
img.no-scaled-link {
13+
background: transparent !important;
14+
}

docs/_static/images/logo.png

114 KB
Loading

docs/_static/images/mlm.png

214 KB
Loading

docs/_static/images/ora.png

239 KB
Loading

docs/_static/images/ulm.png

189 KB
Loading

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"scanpy": ("https://scanpy.readthedocs.io/en/stable/", None),
9898
"numpy": ("https://numpy.org/doc/stable/", None),
9999
"matplotlib": ("https://matplotlib.org/stable/", None),
100+
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
100101
}
101102

102103
# List of patterns, relative to source directory, that match files and
@@ -113,8 +114,9 @@
113114
html_theme = "sphinx_book_theme"
114115
html_static_path = ["_static"]
115116
html_css_files = ["css/custom.css"]
116-
117-
html_title = project_name
117+
html_logo = '_static/images/logo.png'
118+
html_favicon = '_static/images/logo.png'
119+
#html_title = project_name
118120

119121
html_theme_options = {
120122
"repository_url": repository_url,

docs/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
```
44

55
```{toctree}
6-
:maxdepth: 2
6+
:maxdepth: 1
7+
:hidden: true
78
8-
api.md
9+
api
910
notebooks/index
10-
changelog.md
11-
references.md
11+
changelog
12+
references
1213
```

docs/references.bib

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,106 @@ @article{pax5
369369
year = {2007},
370370
month = apr,
371371
pages = {463–470}
372-
}
372+
}
373+
374+
@article{aucell,
375+
title = {SCENIC: single-cell regulatory network inference and clustering},
376+
volume = {14},
377+
ISSN = {1548-7105},
378+
url = {http://dx.doi.org/10.1038/nmeth.4463},
379+
DOI = {10.1038/nmeth.4463},
380+
number = {11},
381+
journal = {Nature Methods},
382+
publisher = {Springer Science and Business Media LLC},
383+
author = {Aibar, Sara and González-Blas, Carmen Bravo and Moerman, Thomas and Huynh-Thu, V\^an Anh and Imrichova, Hana and Hulselmans, Gert and Rambow, Florian and Marine, Jean-Christophe and Geurts, Pierre and Aerts, Jan and van den Oord, Joost and Atak, Zeynep Kalender and Wouters, Jasper and Aerts, Stein},
384+
year = {2017},
385+
month = oct,
386+
pages = {1083–1086}
387+
}
388+
389+
@article{gsea,
390+
title = {Gene set enrichment analysis: A knowledge-based approach for interpreting genome-wide expression profiles},
391+
volume = {102},
392+
ISSN = {1091-6490},
393+
url = {http://dx.doi.org/10.1073/pnas.0506580102},
394+
DOI = {10.1073/pnas.0506580102},
395+
number = {43},
396+
journal = {Proceedings of the National Academy of Sciences},
397+
publisher = {Proceedings of the National Academy of Sciences},
398+
author = {Subramanian, Aravind and Tamayo, Pablo and Mootha, Vamsi K. and Mukherjee, Sayan and Ebert, Benjamin L. and Gillette, Michael A. and Paulovich, Amanda and Pomeroy, Scott L. and Golub, Todd R. and Lander, Eric S. and Mesirov, Jill P.},
399+
year = {2005},
400+
month = sep,
401+
pages = {15545–15550}
402+
}
403+
404+
@article{gsva,
405+
title = {GSVA: gene set variation analysis for microarray and RNA-Seq data},
406+
volume = {14},
407+
ISSN = {1471-2105},
408+
url = {http://dx.doi.org/10.1186/1471-2105-14-7},
409+
DOI = {10.1186/1471-2105-14-7},
410+
number = {1},
411+
journal = {BMC Bioinformatics},
412+
publisher = {Springer Science and Business Media LLC},
413+
author = {H\"{a}nzelmann, Sonja and Castelo, Robert and Guinney, Justin},
414+
year = {2013},
415+
month = jan
416+
}
417+
418+
@inproceedings{xgboost,
419+
series = {KDD ’16},
420+
title = {XGBoost: A Scalable Tree Boosting System},
421+
url = {http://dx.doi.org/10.1145/2939672.2939785},
422+
DOI = {10.1145/2939672.2939785},
423+
booktitle = {Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
424+
publisher = {ACM},
425+
author = {Chen, Tianqi and Guestrin, Carlos},
426+
year = {2016},
427+
month = aug,
428+
pages = {785–794},
429+
collection = {KDD ’16}
430+
}
431+
432+
@article{ora,
433+
title = {On the Interpretation of χ 2 from Contingency Tables, and the Calculation of P},
434+
volume = {85},
435+
ISSN = {0952-8385},
436+
url = {http://dx.doi.org/10.2307/2340521},
437+
DOI = {10.2307/2340521},
438+
number = {1},
439+
journal = {Journal of the Royal Statistical Society},
440+
publisher = {JSTOR},
441+
author = {Fisher, R. A.},
442+
year = {1922},
443+
month = jan,
444+
pages = {87}
445+
}
446+
447+
@article{viper,
448+
title = {Functional characterization of somatic mutations in cancer using network-based inference of protein activity},
449+
volume = {48},
450+
ISSN = {1546-1718},
451+
url = {http://dx.doi.org/10.1038/ng.3593},
452+
DOI = {10.1038/ng.3593},
453+
number = {8},
454+
journal = {Nature Genetics},
455+
publisher = {Springer Science and Business Media LLC},
456+
author = {Alvarez, Mariano J and Shen, Yao and Giorgi, Federico M and Lachmann, Alexander and Ding, B Belinda and Ye, B Hilda and Califano, Andrea},
457+
year = {2016},
458+
month = jun,
459+
pages = {838–847}
460+
}
461+
462+
@article{zscore,
463+
title = {Robust inference of kinase activity using functional networks},
464+
volume = {12},
465+
ISSN = {2041-1723},
466+
url = {http://dx.doi.org/10.1038/s41467-021-21211-6},
467+
DOI = {10.1038/s41467-021-21211-6},
468+
number = {1},
469+
journal = {Nature Communications},
470+
publisher = {Springer Science and Business Media LLC},
471+
author = {Yılmaz, Serhan and Ayati, Marzieh and Schlatzer, Daniela and undefinedi\c{c}ek, A. Erc\"{u}ment and Chance, Mark R. and Koyut\"{u}rk, Mehmet},
472+
year = {2021},
473+
month = feb
474+
}

0 commit comments

Comments
 (0)