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

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ctsa
Copy link

@ctsa ctsa commented Oct 19, 2024

We have a use case (PacificBiosciences/HiFiCNV#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.

@ctsa ctsa changed the title Add Display trait for bcf::record feat: Add Display trait for bcf::record Oct 19, 2024
@ctsa ctsa changed the title feat: Add Display trait for bcf::record feat: Add Display trait for bcf::Record Oct 20, 2024
Added return value checking on vcf_format, which also suggests that the
methods should return a Result and shound't be implemented directly as
a Display trait.
@ctsa ctsa changed the title feat: Add Display trait for bcf::Record feat: Add to_vcf_string method for bcf::Record Oct 21, 2024
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