-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: switching to AnnData up to genewise dispersion estimation (WIP) * refactor: switch to AnnData up to fit_dispersion_trend (WIP) * refactor: switch to AnnData up to calculate_cooks (WIP) * refactor: switch to AnnData up to refit_cooks (WIP) * refactor: porting DeseqStats to anndata (wip) * refactor: port DeseqStats to anndata (wip) * refactor: adapting _cooks_filtering to anndata (wip) * refactor(DeseqStats): port _cooks_filtering to AnnData, now running on synthetic outlier-less dataset (wip) * refactor: step-by-step pipeline running bug-free with anndata * fix(anndata transition): debug behavior when one or more genes have zeros everywhere * fix(anndata transition): debug behavior when there are Cooks outliers * refactor: update tests for anndata compatibility * refactor: DeseqDataSet now extends AnnData * refactor: remove counts / clinical index checks, which are performed by AnnData * refactor: update pytests now that DeseqDataSet extends Anndata * ci: remove docstring tests for methods that are inherited from AnnData * docs: remove obselete docstring fields * docs: update docstrings * refactor(DeseqDataSet): improve handling of all-zero genes * refactor(DeseqStats): clean up comments * refactor: require anndata at installation * fix: typo * ci: update pytest exceptions to reflect file name change (DeseqDataSet.py -> dds.py * ci: update pytest exceptions to reflect file name change (DeseqDataSet.py -> dds.py * docs: disable auto-generation * docs: update sphinx examples to reflect anndata integration * docs: update docstrings * docs: remove __init__ method from API docs * docs: update docstrings * docs: update getting started example * refactor: clean up inline comments * refactor: clean up inline comments * refactor: build list on non-zero gene indices instead of relying on anndata views as it leads to speed improvements * fix: fix bugs due to data not being assigned in ArrayViews * docs: add recursive option to autosummary * test: pull the list of anndata attributes to ignore in tests automatically * refactor: set `non_zero` as a varm field * refactor: set the varm "non_zero" key before calling `_fit_MoM_dispersions()` * refactor: rename "nz_data" to "nonzero_data" * refactor: rename "X" variable to "design_matrix" to lift ambiguity * refactor: avoid duplicating variables when calling np.array * style: split non-zero cooks update
- Loading branch information
1 parent
8ab5026
commit f9653d2
Showing
17 changed files
with
666 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pydeseq2.dds.DeseqDataSet | ||
========================= | ||
|
||
.. currentmodule:: pydeseq2.dds | ||
|
||
.. autoclass:: pydeseq2.dds.DeseqDataSet | ||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~DeseqDataSet.calculate_cooks | ||
~DeseqDataSet.deseq2 | ||
~DeseqDataSet.fit_LFC | ||
~DeseqDataSet.fit_MAP_dispersions | ||
~DeseqDataSet.fit_dispersion_prior | ||
~DeseqDataSet.fit_dispersion_trend | ||
~DeseqDataSet.fit_genewise_dispersions | ||
~DeseqDataSet.fit_size_factors | ||
~DeseqDataSet.refit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pydeseq2.ds.DeseqStats | ||
====================== | ||
|
||
.. currentmodule:: pydeseq2.ds | ||
|
||
.. autoclass:: DeseqStats | ||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~DeseqStats.lfc_shrink | ||
~DeseqStats.run_wald_test | ||
~DeseqStats.summary | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pydeseq2.grid\_search | ||
===================== | ||
|
||
.. automodule:: pydeseq2.grid_search | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
grid_fit_alpha | ||
grid_fit_beta | ||
grid_fit_shrink_beta | ||
vec_nb_nll | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pydeseq2.preprocessing | ||
====================== | ||
|
||
.. automodule:: pydeseq2.preprocessing | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
deseq2_norm | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
pydeseq2.utils | ||
============== | ||
|
||
.. automodule:: pydeseq2.utils | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
build_design_matrix | ||
dispersion_trend | ||
dnb_nll | ||
fit_alpha_mle | ||
fit_lin_mu | ||
fit_moments_dispersions | ||
fit_rough_dispersions | ||
get_num_processes | ||
irls_solver | ||
load_example_data | ||
nb_nll | ||
nbinomFn | ||
nbinomGLM | ||
robust_method_of_moments_disp | ||
test_valid_counts | ||
trimmed_cell_variance | ||
trimmed_mean | ||
trimmed_variance | ||
wald_test | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.