You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Setting continuous_factors in a DeseqDataSet exclusively causes an error in DeseqStats when building a contrast. However, if the same factor is included in the design_factors, it is converted to a Categorical type and works without error.
Describe the bug
Setting continuous_factors in a DeseqDataSet exclusively causes an error in DeseqStats when building a contrast. However, if the same factor is included in the design_factors, it is converted to a Categorical type and works without error.
To Reproduce
The adf.obs.time.dtype is int64. This raises the following in the _build_contrast call:
Would just changing the check in _build_contrast in DeseqStats be enough?
pydeseq2 version: 0.4.11
Expected behavior
The if statement should also check if the factor is in self.dds.continuous_factors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Ubuntu 22.04
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: