rust-bio / rust-htslib

This library provides HTSlib bindings and a high level Rust API for reading and writing BAM files.
MIT License
308 stars 80 forks source link

feat: Add to_vcf_string method for bcf::Record #443

Closed ctsa closed 1 week ago

ctsa commented 1 month ago

We have a use case (https://github.com/PacificBiosciences/HiFiCNV/issues/31) where some element of an input vcf/bcf record is surprising, and the program needs to error out. To make the error message as informative as possible for this case we'd like to print the problematic vcf record in the error message.

I'm proposing to add a new to_vcf_string method to bcf::Record as a solution to this issue.

coveralls commented 1 week ago

Pull Request Test Coverage Report for Build 11799729563

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/bcf/record.rs 10 11 90.91%
<!-- Total: 10 11 90.91% -->
Totals Coverage Status
Change from base Build 11799687230: 0.04%
Covered Lines: 2498
Relevant Lines: 3132

💛 - Coveralls