Entering edit mode
7.1 years ago
AB
▴
360
Hi,
I want to run Matrix EQTL on my data. I have the genotype information as an imputed VCF file and matrix EQTL requires a Snp.txt file. How can convert the vcf to a text file ??
Thanks, Apoorva
A vcf IS a text file. You have to show us what is the format of this 'snp.txt' file.
So this is the format of the snp.txt file as required by Matrix EQTL R package. The description only says the file should have the genotype information for the markers across all the samples
The vcf file I have is in this format.
There are certain problems with your VCF and requested output.
For eg. for first record:
@cpad0112 I think it uses a integer notation for the genotypes: 0=HOM_REF, 1=HET, 2=HOM_VAR
Thanks @Pierre. Does that mean GT information in VCF needs to be reformatted to 0=HOM_REF, 1=HET, 2=HOM_VAR format (for each SNP /Sample) via a third party tool or code?
can you post your VCF headers as well here?
to convert vcf to tsv, use vcf2tsv from vcflib