AlexsLemonade / scpca-nf

scpca-nf is the Nextflow workflow for processing Single-cell Pediatric Cancer Atlas Portal data
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

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

Closed allyhawkins closed 4 months ago

allyhawkins commented 4 months ago

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.