-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correction for old merge #27
Conversation
Merge changes from main
reverse pull request - sync forked repository with original
merge from original hadge, deleting demuxmix from forked
Reverse Pull Request - adding 3 changes from original
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please always leave a space after
#
comments - Remove outcommented code
bin/summary_hash.py
Outdated
@@ -105,7 +104,8 @@ def hashsolo_summary(hashsolo_res, raw_adata, raw_mudata): | |||
mudata.write("hash_summary/mudata/mudata_with_mudata_"+ os.path.basename(x)+".h5mu") | |||
|
|||
hashsolo_classi = obs_res[["most_likely_hypothesis"]] | |||
hashsolo_classi.loc[:, "most_likely_hypothesis"] = hashsolo_classi["most_likely_hypothesis"].replace({0.0: "negative", 1.0: "singlet", 2.0: "doublet"}) | |||
#hashsolo_classi.loc[:, "most_likely_hypothesis"] = hashsolo_classi["most_likely_hypothesis"].replace({0.0: "negative", 1.0: "singlet", 2.0: "doublet"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a different way to do the same as in the commented line, because it was producing a warning from pandas.
Commeted line is now out
bin/summary_hash.py
Outdated
classification_dt["classification"] = classification_dt["assignment"].apply(lambda x: "doublet" if x else "singlet") | ||
classification_dt.at[0, "classification"] = "negative" | ||
|
||
##Inner function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
##Inner function |
bin/summary_hash.py
Outdated
classification_dt.at[0, "classification"] = "negative" | ||
|
||
##Inner function | ||
def classify_hash(row,number_hashes): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inner functions should be prefixed with _
comments from PR resolved, file multi_sample_input.csv now in test_data
Tested on multiple data completed