Hi everyone,
I have a vcf-file and I'm trying to convert my vcf file into 012 genotype matrix using the following code:
vcftools --vcf myfile.vcf --012 --out out_file
I didn't have problems when I run this code before, however now the following error message appears:
Error: Require Genotypes in VCF file in order to output as 0/1/2 matrix.
I've tried increasing the number of temporary files allowed by the operating system used (e.g. ulimit -n 1000), but still didn't work.
Could someone help me? Thanks.
Yes, according with the error message there is no genotype in my vcf. However I checked my file using your suggestion and there is genotype on it.
what was the output of the command please.
The output of the command showed me only the following columns: #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT ID1 ID2 ID3 ... IDn Where: ID1, ID2, ID3 until IDn are the samples' ID.
Hello mayara.salvian ,
please show us the first lines of the variants.
fin swimmer
Hello finswimmer,
These are the first seven lines of my file:
Where: ID (1..6) are the SNPs' ID and ID*(1..5) are the Samples' ID.
Hello again,
just a guess: Maybe the
*
in the sample names makes some problems here. Remove them from the names and try again.fin swimmer