Commit 3d1c262
authored
Fix AttributeError when design is a DataFrame (#443)
When DeseqDataSet is created with a precomputed design matrix (DataFrame)
instead of a formula string, cond() and contrast() raise a confusing
AttributeError because formulaic_contrasts is never set.
Added guard with a clear error message directing users to pass contrast
vectors directly, matching the existing pattern used for the variables
property.
Fixes #440.1 parent a19c44b commit 3d1c262
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
579 | 586 | | |
580 | 587 | | |
581 | 588 | | |
582 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
583 | 597 | | |
584 | 598 | | |
585 | 599 | | |
| |||
0 commit comments