Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix extraction of corf_loc_names when dmat is provided directly #174

Closed
wants to merge 17 commits into from
Closed
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
5 changes: 4 additions & 1 deletion diffxpy/testing/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,10 @@ def wald(
as_numeric=as_numeric
)
else:
coef_loc_names = dmat_loc.columns.tolist()
if isinstance(dmat_loc, patsy.design_info.DesignMatrix):
coef_loc_names = dmat_loc.design_info.column_names
else:
coef_loc_names = dmat_loc.columns.tolist()
if not np.all([x in coef_loc_names for x in coef_to_test]):
raise ValueError(
"the requested test coefficients %s were found in model coefficients %s" %
Expand Down
4 changes: 1 addition & 3 deletions docs/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ Diffxpy allows you to define a data set partition and to conduct test on each ge
Multiple tests per gene
~~~~~~~~~~~~~~~~~~~~~~~

How to perform `pairwise <https://nbviewer.jupyter.org/github/theislab/diffxpy_tutorials/tree/master/diffxpy_tutorials/test/multiple_tests_per_gene.ipynb>`__ tests.

How to perform group tests versus all other groups (versus `rest <https://nbviewer.jupyter.org/github/theislab/diffxpy_tutorials/tree/master/diffxpy_tutorials/test/multiversus_rest.ipynb>`__).
How to perform `pairwise tests, group versus rest tests and tests within each parition <https://nbviewer.jupyter.org/github/theislab/diffxpy_tutorials/tree/master/diffxpy_tutorials/test/multiple_tests_per_gene.ipynb>`__ tests.


Gene set enrichment: enrich
Expand Down