This is a test version of Biostars. For the public version, visit https://www.biostars.org.
genotype matrix

Hello. my university give me a zip file that contain VCF and its tbi So, I have one VCF file that contains many variants for many person. and tbi that I didn't open it until now.

I want to create a simple genotype matrix genotype matrix consists of row and columns of course which the row is define the person and the columns is ID of variants
then I fill row/column with the ref columns that related to it. All information I found it in VCF expect person.

So, from where can I extract the person info such as id so I know this info related to this id? and how???? also where can I use tbi file?

I'm using linux and python

Thank you very much

structure python

1 answer

Hello,

I think you should start understanding the VCF format. In this document you will find helpful information. The file is compressed by bgzip tool and indexed by tabix which generates the .tbi file.

Log in to answer this question.