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 17, 2024
1 parent c99eee0 commit b631b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scimap/helpers/classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def classify (adata,

classify_idx=data.index
classified = pd.DataFrame(non_summary.loc[data.index]) #subsets phenotype rows to only classified cells
if showPhenotypeLabel:
if showPhenotypeLabel is True:
classified[phenotype_label] = classified[phenotype]+"_"+classify_label # add phenotype_label col
classified[label]=pd.DataFrame(np.repeat(classify_label, len(classify_idx)), index = classify_idx) # add label col
classified.drop([phenotype], axis='columns', inplace=True) # drop phenotype col, for merge
Expand Down

0 comments on commit b631b62

Please sign in to comment.