-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi Peter, a question regarding pyslim's VCF output:
When you output VCF files from SLiM it has that great feature to include the mutation type (MT), as well as the mutation ID value, in the VCF output. However when we recap/mutate and then output a VCF with pyslim all that information is lost. If that metadata is still there after recap/mutate, is there a possibility that information could be included in the VCF of the pyslim write_vcf output?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
petrelharp commentedon Jul 22, 2019
That's a great idea. The information is totally there, so we could output it. The vcf output for tskit also needs to be improved; so the best solution would start with that and then modifying it for pyslim.
I probably can't do this right away, though. Help is appreciated!
akijarl commentedon Sep 9, 2019
Hi Peter,
I've been trying to modify VcfWriter in the tskit - vcf.py file with the code below to the get the metadata output as part of the write_vcf command:
I've been struggling with getting this to work, but I just updated tskit and now even when I attempt the usual vcf output I'm getting errors like "Cannot specify ploidy when individuals present" and when I remove the ploidy specification
I get a "Cannot generate genotypes for non-samples unless missing data imputation is enabled". Do you know what's going on with that?
petrelharp commentedon Sep 9, 2019
I don't know! Here's my suggestion:
Looking forward to it,
peter