Skip to content

Commit

Permalink
Fix nox
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Jan 26, 2023
1 parent 3a506f0 commit 54b7f30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pertpy/tools/_base_coda.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,11 +1383,11 @@ def from_scanpy(
if covariate_obs:
covariate_obs += sample_identifier
else:
covariate_obs = sample_identifier
covariate_obs = sample_identifier # type: ignore

# join sample identifiers
if type(sample_identifier) == list:
adata.obs["scCODA_sample_id"] = adata.obs[sample_identifier].agg('-'.join, axis=1)
adata.obs["scCODA_sample_id"] = adata.obs[sample_identifier].agg("-".join, axis=1)
sample_identifier = "scCODA_sample_id"

# get cell type counts
Expand Down
13 changes: 11 additions & 2 deletions pertpy/tools/_mixscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,17 @@ def lda(
return adata

def _get_perturbation_markers(
self, adata, split_masks, categories, labels, control, layer, pval_cutoff, min_de_genes, logfc_threshold
):
self,
adata: AnnData,
split_masks: list[np.ndarray],
categories: list[str],
labels: str,
control: str,
layer: str,
pval_cutoff: float,
min_de_genes: float,
logfc_threshold: float,
) -> dict[tuple, np.ndarray]:
"""determine gene sets across all splits/groups through differential gene expression
Args:
Expand Down

0 comments on commit 54b7f30

Please sign in to comment.