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

scNapBar fails because of the random shuffling of barcodes #17

Open
eboileau opened this issue Dec 6, 2021 · 0 comments
Open

scNapBar fails because of the random shuffling of barcodes #17

eboileau opened this issue Dec 6, 2021 · 0 comments

Comments

@eboileau
Copy link
Collaborator

eboileau commented Dec 6, 2021

In rule build_genome, a fraction of numIlmReads is used to simulate reads we want to use as true negatives. For this we shuffle the bk_barcodes.tsv.gz. To facilitate reproducibility of the results, I added a seed to shuf using the very file bk_barcodes.tsv.gz, so that it will "randomise" in the same way every single time. The problem is that it needs a larger number of bytes, otherwise an end of file error is thrown. If dealing with e.g. Visium Spatial 10X, the number of total/raw barcodes is much lower, and fixed to 4992, which is the number of spots in the spatial array, so this results in an error, for large numIlmReads (for a given percent_raw).

This is easily fixed by "seeding" using the Illumina BAM file, which should in most cases be sufficient.

eboileau added a commit that referenced this issue Dec 7, 2021
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

No branches or pull requests

1 participant