Skip to content
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

Merged
merged 22 commits into from
Oct 17, 2024
Merged

Lk pd 2736 doublets #136

merged 22 commits into from
Oct 17, 2024

Conversation

ekiernan
Copy link
Contributor

testing new warp-tools docker with scikit learn and scanpy; custom doublet script for Multiome analysis

@ekiernan
Copy link
Contributor Author

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)
Copy link
Collaborator

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)

Copy link
Contributor Author

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
Copy link
Collaborator

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])

@ekiernan ekiernan merged commit 74c8b3f into develop Oct 17, 2024
24 of 28 checks passed
@ekiernan ekiernan deleted the lk-PD-2736-doublets branch October 17, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants