I have the following issue with bcf files. It might be unrelated to plink, so just in case.
If I create a test VCF file and load it with plink with the following commands:
# (echo "##fileformat=VCFv4.1"
# echo "##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">"
# echo "##contig=<ID=1,length=249212577>"
# echo -e "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tA"
# echo -e "1\t69428\trs140739101\tT\tG\t.\t.\t.\tGT\t0/0") > test.vcf
# plink --vcf test.vcf
Everything works and I get the following output:
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to plink.log.
7762 MB RAM detected; reserving 3881 MB for main workspace.
--vcf: plink.bed + .bim + .fam written.
If then I convert the file to bcf format using bcftools and try to load it into plink with the following commands:
# cd bcftools; make; cd ..
# bcftools/bcftools view -Ob -o test.bcf test.vcf
# plink --bcf test.bcf
I get the following error:
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to plink.log.
7762 MB RAM detected; reserving 3881 MB for main workspace.
Error: Unrecognized GT field format in .bcf file.
However, the bcf file does not seem malformed, and in fact unpacking and loading it seems to work just fine:
# bcftools/bcftools view test.bcf | plink --vcf /dev/stdin
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to plink.log.
7762 MB RAM detected; reserving 3881 MB for main workspace.
--vcf: plink.bed + .bim + .fam written.