-
Notifications
You must be signed in to change notification settings - Fork 2
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
Lk pd 2736 doublets #136
Lk pd 2736 doublets #136
Conversation
…rary_tso_doublets
…sion" This reverts commit 200d6a9.
This PR is for warp-tools docker v2.4.0 |
#gex_data.write(f"{input_id}.h5ad") | ||
|
||
print("Reading library metrics") | ||
library = pd.read_csv(library_csv, header=None) |
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.
pandas DataFrame handling can be improved here:
library = pd.read_csv(library_csv, header=None, index_col=0, squeeze=True)
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.
could not use squeeze as is
percent_keeper = keeper_cells/estimated_cells | ||
percent_usable = keeper_cells/expected_cells | ||
|
||
# Updating library metrics |
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.
consider using pd.concat() instead of manual dictionary creation: library = pd.concat([library, new_metrics])
testing new warp-tools docker with scikit learn and scanpy; custom doublet script for Multiome analysis