Skip to content

Commit

Permalink
out debugging println
Browse files Browse the repository at this point in the history
  • Loading branch information
mari-ga committed Sep 4, 2024
1 parent 643f92e commit f4a13c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/summary_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def demuxem_summary(demuxem_res, raw_adata, raw_mudata):
demuxem_assign = demuxem_assign.drop(columns=["Barcode"])
assign.append(demuxem_assign)
if raw_adata is not None:
print("raw_adata is not None")
adata = raw_adata.copy()
adata.obs = adata.obs.merge(
demuxem_assign, left_index=True, right_index=True, how="left"
Expand Down Expand Up @@ -142,7 +141,6 @@ def hashsolo_summary(hashsolo_res, raw_adata, raw_mudata):
assign.append(hashsolo_assign)

if raw_adata is not None:
print("raw_adata is not None")
adata = raw_adata.copy()
adata.obs = adata.obs.merge(
hashsolo_assign, left_index=True, right_index=True, how="left"
Expand Down Expand Up @@ -173,7 +171,9 @@ def hashsolo_summary(hashsolo_res, raw_adata, raw_mudata):

hashsolo_classi = obs_res[["most_likely_hypothesis"]]
hashsolo_classi_copy = hashsolo_classi.copy()
hashsolo_classi_copy["most_likely_hypothesis"] = hashsolo_classi_copy["most_likely_hypothesis"].astype(object)
hashsolo_classi_copy["most_likely_hypothesis"] = hashsolo_classi_copy[
"most_likely_hypothesis"
].astype(object)
hashsolo_classi_copy.loc[
hashsolo_classi_copy["most_likely_hypothesis"] == 0.0,
"most_likely_hypothesis",
Expand Down Expand Up @@ -241,7 +241,6 @@ def hasheddrops_summary(hasheddrops_res, raw_adata, raw_mudata):
assign.append(hasheddrops_res)

if raw_adata is not None:
print("raw_adata is not None")
adata = raw_adata.copy()
adata.obs = adata.obs.merge(
hasheddrops_res, left_index=True, right_on="Barcode", how="left"
Expand Down Expand Up @@ -306,7 +305,6 @@ def hasheddrops_summary(hasheddrops_res, raw_adata, raw_mudata):


def multiseq_summary(multiseq_res, raw_adata, raw_mudata):
print("Multiseq: ",multiseq_res)
assign = []
params = []
for x in multiseq_res:
Expand Down

0 comments on commit f4a13c4

Please sign in to comment.