Skip to content

Commit

Permalink
Update _classify.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sarafiller authored May 21, 2024
1 parent b631b62 commit 289400f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scimap/helpers/_classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def classify (adata,
else:
# create new naming scheme for label and phenotype_label cols in classified
classify_idx=data.index
if showPhenotypeLabel:
if showPhenotypeLabel is True:
non_summary = pd.DataFrame({phenotype: adata.obs[phenotype]}) # gets the index and phenotype
non_summary[phenotype] = non_summary[phenotype].astype(str)

Expand All @@ -145,7 +145,7 @@ def classify (adata,


if collapse_failed is True:
if showPhenotypeLabel:
if showPhenotypeLabel is True:
meta = non_summary # has index and phenotype col
else:
meta = pd.DataFrame(index= adata.obs.index)
Expand Down

0 comments on commit 289400f

Please sign in to comment.