How to fill in missing fields on a VCF to convert into a genotype matrix?
0
0
Entering edit mode
6.9 years ago
jespinoz ▴ 20

My VCF file looks like the screenshot below and I believe it is missing the necessary fields to convert it into a genotype matrix that I can actually use. It's 14GB and contains 88 samples.

How can I fill the missing fields (e.g. GT) and convert it into a genotype matrix with exact commands?

I've found references for similar questions that are one sentence answers with a link to a tool but many issues aren't addressed and I have yet to find a good tutorial on how to fill in missing fields on a VCF file and convert it to genotype/SNPs matrix.

Thank you : )

enter image description here

vcf genotype matrix bcf snps • 2.3k views
ADD COMMENT
0
Entering edit mode

My first guess: those are probably missing because they weren't genotyped.

ADD REPLY
0
Entering edit mode

I used samtools mpileup. How can I genotype them? I have all of the bam files still.

ADD REPLY
0
Entering edit mode

You could check for one of the missing samples if that position is covered in your bam file.

ADD REPLY

Login before adding your answer.

Traffic: 1923 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6