Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wxicu committed Nov 7, 2023
1 parent 2ca87c4 commit 629fd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/summary_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def htodemux_summary(htodemux_res, raw_adata, raw_mudata):

if raw_mudata is not None:
mudata = raw_mudata.copy()
mudata['rna'].obs = mudata['rna'].obs.merge(htodemux_assign, left_index=True, right_on='Barcode', how='left').set_index('Barcode')
mudata['rna'].obs = mudata['rna'].obs.merge(htodemux_assign, left_index=True, right_index=True, how='left')
mudata['rna'].obs.rename(columns={mudata['rna'].obs.columns[0]: 'donor'}, inplace=True)
mudata['rna'].obs.donor = mudata['rna'].obs.donor.fillna("negative")
mudata['rna'].obs.donor = mudata['rna'].obs.donor.astype(str)
Expand Down

0 comments on commit 629fd96

Please sign in to comment.