Skip to content

Commit

Permalink
Merge pull request #109 from emmanuel-contreras/fix_Unknown_dtype
Browse files Browse the repository at this point in the history
Fixed str dtype for Unknown cells, Closes #107
  • Loading branch information
ajitjohnson authored Jul 15, 2024
2 parents 3e68c79 + a67499a commit 296885b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scimap/tools/phenotype_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def remove_phenotype(p, ID, pheno_threshold_percent, pheno_threshold_abs):
fail = list(x.loc[x['val'] < x['val'].sum() * pheno_threshold_percent/100].index)
if pheno_threshold_abs is not None:
fail = list(x.loc[x['val'] < pheno_threshold_abs].index)
d[label] = d[label].replace(dict(zip(fail, np.repeat('Unknown',len(fail)))))
d[label] = d[label].replace(dict(zip(fail, ['Unknown'] * len(fail) )))
# Return
return d

Expand Down

0 comments on commit 296885b

Please sign in to comment.