apriha / snps

tools for reading, writing, merging, and remapping SNPs
BSD 3-Clause "New" or "Revised" License
100 stars 19 forks source link

Multisample VCF #105

Open kkarbasi opened 4 years ago

kkarbasi commented 4 years ago

Merging snps from different samples and saving them as a multi-sample VCF. Hi, would that be possible?

Thanks!

apriha commented 4 years ago

Thanks for the issue! Yes, I think a multi-sample VCF could be constructed from merged files. To do this, I'm envisioning the SNPs object maintaining the results of each merge (e.g., RSIDs in common, discrepant SNPs) and building the VCF from that summary information.

Related, the fix for this issue should also operate in reverse to read a multi-sample VCF, identifying discrepant SNPs in the process.