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

guard against shell pipefails in align_and_count in instances where empty inputs would result in div-by-zero conditions #535

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

tomkinsc
Copy link
Member

guard against shell pipefails in align_and_count in instances where empty inputs would result in div-by-zero conditions

This is also somewhat dependent on broadinstitute/viral-core#102, which helps ensure samtools idxstats emits useful outputs in the case of empty read groups in the input (i.e. zero counts are reported for the sequences in the reference fasta used by align_and_count in the event the bam is empty, rather than a single zero for the catchall "*" read category—though with the changes in this PR the latter should now be tolerated)

@tomkinsc tomkinsc merged commit 773e395 into master Apr 26, 2024
12 checks passed
@tomkinsc tomkinsc deleted the ct-align-and-count-empty-input-handling branch April 26, 2024 13:08
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.

1 participant