This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to get SNPs genotype matrix from vcf file for JoinMap analysis?

Hi, I need to use JoinMap for linkage map construction from GBS SNPs data. I need to get genotype matrix prior loading into the JoinMap. Is there any way to get genotype matrix from vcf file? Thanks in advance.

snp next-gen r

Hi Gaurab,

I know it has been 5 years, but did you figure out how to do the conversion? I am having the same problem; I was wondering if you can help me with that.

Thank you.

3 answers

you can use bcftools --view options to convert vcf file format to genotype file format

bcftools query was precisely designed to generate this kind of genotype tables.

Please try this script.

https://github.com/johnomics/scripts/blob/master/convert_vcf_to_joinmap.pl

Log in to answer this question.