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

Account for no cells being assigned to a sample when demultiplexing #745

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

allyhawkins
Copy link
Member

Apparently, with our test data using hashedDrops doesn't assign cells to any of our samples. This prints out an empty list again, which we want to avoid. I checked, and using HTODemux only assigns cells to one sample but not all of them. This leads to a list with just one value while the list of sample IDs is longer. This would mean there is no way to match which cell count goes to which sample.

If no cells are assigned, we should set to 0 rather than having an empty list. This PR makes that adjustment by looking for any missing sample IDs and then assigning those to 0.

Copy link
Member

@jashapiro jashapiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I proposed an alternative method which is a bit more direct, but it should be fine either way, really.

bin/sce_qc_report.R Outdated Show resolved Hide resolved
bin/sce_qc_report.R Show resolved Hide resolved
@allyhawkins allyhawkins merged commit 53fb741 into development Apr 19, 2024
4 checks passed
@allyhawkins allyhawkins deleted the allyhawkins/account-for-missing-samples branch April 19, 2024 17:56
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.

2 participants