-
Notifications
You must be signed in to change notification settings - Fork 77
Chromosome data in VCF #2728
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
Comments
Hi @MleGhis! Would you like to prepare a PR of how this would work for the community to review? There is a development guide in the docs. |
Thanks @benjeffery for your prompt reply. |
There's a few ways we could enable this I think:
|
Hi,
My SLiM simulations include multiple chromosomes (recombination rates are set at 0.5 between them, as described here ) and I'd like to create a VCF that reflects this structure. Sadly, the write_vcf method currently only accepts strings as input for the "contig_id" parameter, thus forcing every value in the CHROM column of the output VCF to be the same. I can easily create a list of the values I want in this column (since I know the end position of each chromosome), which makes it possible to parse the VCF myself, and I guess that creating a VCF for each chromosome and fusing them afterward would also be an option, but VCF files are rather heavy and many simulations are gonna run, meaning that I'd rather directly give write_vcf the informations needed to create the right file. Do you plan to give the possibility of creating VCF with multiple chromosomes in the future ?
Thank you for reading, have a nice day.
The text was updated successfully, but these errors were encountered: