-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH Generic design support using
formulaic
(#328)
* feat: set design matrices using formulaic (WIP) * feat: set design matrices using formulaic (WIP) * feat: check that there are no NaNs in the design matrix * feat: implement support for pairwise categorical contrasts * feat: allow directly inputing a contrast vector * feat: allow setting design factors as in versions < 0.5.* for backward compatibiliy, but throw deprecation warning * feat: improve summary message when a contrast vector was directly provided * docs: update docstrings to reflect deprecation of design_factors * chore: deprecate ref_level * chore: deprecate continuous_factors * chore: remove build_design_matrix and remove_underscores utils, as they are no longer used * refactor: update lfc_shrink to reflect new design format * tests: update edge case tests * tests: update main tests * docs: remove build_design_matrix from docs * docs: add missing docstrings in new DeseqStats methods * feat: add formulaic utils copied from pertpy * build!: discontinue python 3.9 * docs: update minimal example * docs: update data loading example * docs: update step by step example * fix: typo * feat: implement a `to_picklable_anndata()` method to allow saving a dds without its unpicklable attributes * docs: add API documentation for to_picklable_anndata * docs: fix rst formatting * refactor: throw a ValueError instead of an AssertionError when numerical constrasts have incorrect shapes * test: ignore anndata ImplicitModificationWarnings in test suite * test: add _formulaic test suite from pertpy * refactor: move .cond() to DeseqDataSet so that it can be used at DeseqStats initialization * docs: add more details on providing a design matrix directly * tests: add a few tests when a design matrix is directly provided * refactor: throw ValueError instead of AssertionError in case of design with invalid type * docs: improve lfc_shrink example * docs: document the new materializer attributes
- Loading branch information
1 parent
c5f2335
commit ed62d06
Showing
15 changed files
with
1,174 additions
and
700 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
|
||
.. autosummary:: | ||
|
||
build_design_matrix | ||
dispersion_trend | ||
dnb_nll | ||
fit_alpha_mle | ||
|
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.