mbhall88 / rasusa

Randomly subsample sequencing reads or alignments
https://doi.org/10.21105/joss.03941
MIT License
211 stars 17 forks source link

Suggestion: Raise warning when desired level of coverage is not possible #36

Closed k3yavi closed 2 years ago

k3yavi commented 2 years ago

Hi,

This is with respect to https://github.com/openjournals/joss-reviews/issues/3941 .

The tool works perfectly for the designed use case. However I think it'd be great to raise a warning when the desired level of coverage is not possible, for example when the fraction of reads to the size of the genome is not large enough.

mbhall88 commented 2 years ago

Thanks @k3yavi, good suggestion. Done in https://github.com/mbhall88/rasusa/commit/31bb0bfa375ef2f65b27b431901834927e8e7510