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 Display trait for bcf::Record #443

Open
wants to merge 2 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 a solution for this by either adding a method like record.to_vcf_string(), or (as implemented in the PR), make the VCF record output the Display trait for bcf::record. What do you think?

@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
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