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

Gracefully handle when no reads map to a chromosome #28

Open
kelly-sovacool opened this issue Aug 15, 2023 · 0 comments
Open

Gracefully handle when no reads map to a chromosome #28

kelly-sovacool opened this issue Aug 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kelly-sovacool
Copy link
Member

kelly-sovacool commented Aug 15, 2023

While running a test dataset with a subset of reads from only chromosome 22 (see #27), rule varscan_single failed for all other chromosomes because no reads mapped to them so there were no variants to call. (The varscan command within that rule didn't error, but bcftools errored right after due to the empty file.)

We could prevent this further upstream after rule split_bam_by_chrom. If this rule produces a bam file with no reads for a given chromosome, remove it from the chroms list so downstream rules don't use it. Will probably need a checkpoint to accomplish this because the DAG will have to be reevaluated with the new chroms list after all split_bam_by_chrom instances complete.

Temporary fix I'm using now is to manually edit the config file to include only chr22 and then manually run kickoff.sh so it doesn't override my custom config (see #29).

@kelly-sovacool kelly-sovacool added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant