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

Add contig metadata #30

Open
jeromekelleher opened this issue Aug 6, 2024 · 0 comments
Open

Add contig metadata #30

jeromekelleher opened this issue Aug 6, 2024 · 0 comments

Comments

@jeromekelleher
Copy link
Contributor

We're currently not storing anything about contigs except the ID and length. Unfortunately the contig header meta information seems pretty loosely constrained, and possibly the only option that we have to keep full information about contigs from the header is to add a catch-all contig_metadata (or something) array that stores this stuff.

e.g. the VCF spec gives an example of

##contig=<ID=20,length=62435964,assembly=B36,md5=f126cdf8a6e0c7f379d618ff66beb2da,species="Homo sapiens">

So here, the contig_metadata field would consist of assembly=B36,md5=f126cdf8a6e0c7f379d618ff66beb2da,species="Homo sapiens"

I guess it would be more helpful if this was formatted as JSON?

I guess the alternate (probably better) approach would be to suggest that converters MAY attempt to create arrays corresponding to these items (e.g. contig_md5, contig_assembly, contig_species here) on a best-effort basis?

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

No branches or pull requests

1 participant