Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
fix value error sample_cov_keys case
Browse files Browse the repository at this point in the history
  • Loading branch information
justjhong committed Mar 27, 2024
1 parent e329ed7 commit 1b6e423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mrvi/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ def differential_expression(
- `baseline_expression`: Baseline expression levels for each covariate across cells and genes, if `store_baseline` is True.
- `n_samples`: Number of admissible samples for each cell, if `filter_inadmissible_samples` is True.
"""
if sample_cov_keys is not None:
if sample_cov_keys is None:
# Hack: kept as kwarg to maintain order of arguments.
raise ValueError("Must assign `sample_cov_keys`")
adata = self.adata if adata is None else adata
Expand Down

0 comments on commit 1b6e423

Please sign in to comment.