Hello,
I have a vcf file that I am trying to use to make bed, fam, and bim files. I am using the code:
plink --vcf ~/filtering/test1/outfiles/test1.vcf --make-bed --out ~/filtering/test1/outfiles/test1
And receiving the error:
Error: no samples in .vcf file.
However, when I inspect my vcf file, I see this:
##fileformat=VCFv4.1
##fileDate=20171018
##source=pyRAD.v.3.0.66
##reference=common_allele_at_each_locus
##INFO=<ID=NS,Number=1,Type=Integer,Description="Number of Samples With Data">
##INFO=<ID=DP,Number=1,Type=Integer,Description="Total Depth">
##INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency">
##INFO=<ID=AA,Number=1,Type=String,Description="Ancestral Allele">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality">
##FORMAT=<ID=DP,Number=1,Type=Integer,Description="Read Depth">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT 1A_0 1B_0 1C_0 1D_0 2E_0 2F_0 2G_0 2H_0 3I_0 3J_0 3K_0 3L_0
31 20 . C G 20 PASS NS=12;DP=6 GT 1|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0
61 75 . T C 20 PASS NS=12;DP=6 GT 1|1 1|1 1|1 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0
63 71 . C T 20 PASS NS=12;DP=6 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 1|1 0|0 0|0 0|0 0|0
89 41 . A T 20 PASS NS=12;DP=6 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 1|0 0|0 0|0 0|0 0|0
123 68 . A C 20 PASS NS=12;DP=6 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 1|0 0|0
145 20 . A G 20 PASS NS=12;DP=6 GT 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 0|0 1|0 0|0 0|0
~
If I am not mistaken, everything to the right of FORMAT is a sample, and their genotypes are all listed below. I am not sure why I am receiving samples as I believe the samples are right there?
Thanks so much for your help.