Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning][].

## 2.0.0

Major update to accomodate the scverse :cite:`scverse` template.
Major update to accomodate the scverse template.

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.

Expand All @@ -20,8 +20,8 @@ All functions have been rewritten to follow the new API, errors when running pre
- Use `decoupler.mt.<method_name>` to call a method
- `min_n` argument has been renamed `tmin`
- New argument `bsize` allows to run a method with batches in case excessive memory usage is an issue
- :math:`p_{values}` of the enrichment scores are now corrected by Benjamini-Hochberg
- `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.
- $p_{values}$ of the enrichment scores are now corrected by Benjamini-Hochberg
- `mdt` and `udt` are now based on `xgboost` instead of `sklearn` for better scalability. `udt` statistic is now the coefficient of determination $R^2$ instead of the importance of a single decision tree.
- `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
- `viper` now correctly estimates shadow regulons when network weights are values other than -1 or +1
- `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
Expand All @@ -40,7 +40,7 @@ All functions have been rewritten to follow the new API, errors when running pre
- `plot_associations` to `obsm`
- `plot_targets` to `source_targets`
- Preprocessing functions are now in the new `pp` module
- Renamed `check_corr` to `net_corr`, now also returns adjusted :math:`p_{values}`
- Renamed `check_corr` to `net_corr`, now also returns adjusted $p_{values}$
- Renamed `get_acts` to `get_obsm`
- Renamed `get_pseudobulk` to `pseudobulk`. Now it does not automatically remove low quality samples, this is now done with the function `filter_samples`
- Deprecated `get_contrast`, `get_top_targets` and `format_contrast_results`. `PyDESeq2` should be used instead
Expand Down
188 changes: 0 additions & 188 deletions docs/api.md

This file was deleted.

44 changes: 44 additions & 0 deletions docs/api/bm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Benchmark


## Pipeline
```{eval-rst}
.. module:: decoupler.bm
.. currentmodule:: decoupler

.. autosummary::
:toctree: generated

bm.benchmark
```

## Metrics

```{eval-rst}
.. module:: decoupler.bm.metric
.. currentmodule:: decoupler

.. autosummary::
:toctree: generated

bm.metric.auc
bm.metric.fscore
bm.metric.qrank
bm.metric.hmean
```

## Plotting

```{eval-rst}
.. module:: decoupler.bm.pl
.. currentmodule:: decoupler

.. autosummary::
:toctree: generated

bm.pl.auc
bm.pl.fscore
bm.pl.qrank
bm.pl.bar
bm.pl.summary
```
48 changes: 48 additions & 0 deletions docs/api/ds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Datasets

## Bulk
```{eval-rst}
.. module:: decoupler.ds
.. currentmodule:: decoupler

.. autosummary::
:toctree: generated

ds.hsctgfb
ds.knocktf
```

## Single-cell
```{eval-rst}
.. autosummary::
:toctree: generated

ds.covid5k
ds.erygast1k
ds.pbmc3k
```

## Spatial
```{eval-rst}
.. autosummary::
:toctree: generated

ds.msvisium
```

## Toy
```{eval-rst}
.. autosummary::
:toctree: generated

ds.toy
ds.toy_bench
```

## Utils
```{eval-rst}
.. autosummary::
:toctree: generated

ds.ensmbl_to_symbol
```
24 changes: 24 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# API

Import decoupler as:

```
import decoupler as dc
```

```{toctree}
:maxdepth: 2

bm
ds
mt
op
pp
```

```{toctree}
:maxdepth: 1

pl
tl
```
34 changes: 34 additions & 0 deletions docs/api/mt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Methods

## Single methods

```{eval-rst}
.. module:: decoupler.mt
.. currentmodule:: decoupler

.. autosummary::
:toctree: generated

mt.aucell
mt.gsea
mt.gsva
mt.mdt
mt.mlm
mt.ora
mt.udt
mt.udt
mt.ulm
mt.viper
mt.waggr
mt.zscore
```

## Multiple methods

```{eval-rst}
.. autosummary::
:toctree: generated

mt.decouple
mt.consensus
```
Loading
Loading