Skip to content

Commit

Permalink
Merge pull request #50 from YosefLab/canergen-patch-1
Browse files Browse the repository at this point in the history
Update _onclass.py to work in fast mode.
  • Loading branch information
canergen authored Jul 25, 2024
2 parents 6a9a87c + 693220a commit a06262e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popv/algorithms/_onclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def predict(self, adata):
pred_label = [train_model.i2co[ind] for ind in onclass_seen]
pred_label_str = [clid_2_name[ind] for ind in pred_label]
adata.obs[self.result_key] = pred_label_str
adata.obs["onclass_seen"] = pred_label_str
adata.obs[self.seen_result_key] = pred_label_str
else:
onclass_pred = train_model.Predict(corr_test_feature, use_normalize=False, refine=True, unseen_ratio=-1.0)
pred_label = [train_model.i2co[ind] for ind in onclass_pred[2]]
Expand Down

0 comments on commit a06262e

Please sign in to comment.