Skip to content

Commit

Permalink
Fixed str dtype for Unknown cells, Closes #107
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-contreras committed Jul 12, 2024
1 parent 3e68c79 commit a67499a
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 a67499a

Please sign in to comment.