Hi, I am trying to use the --export haps command using plink2 on a vcf file but it fails to open the file
Even a simple command does not work:
plink2 --vcf chr.19_imputed_beagle_biallelic.vcf.gz.recode.vcf --geno --make-bed --out delete_this
PLINK v2.00a2 32-bit (22 Sep 2018)
www.cog-genomics.org/plink/2.0/(C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to delete_this.log.
Options in effect:
--geno
--make-bed
--out delete_this
--vcf chr.19_imputed_beagle_biallelic.vcf.gz.recode.vcf
Start time: Wed Mar 13 12:51:23 2019
1029911 MiB RAM detected; reserving 2047 MiB for main workspace.
Using up to 88 threads (change this with --threads).
Error: Failed to open chr.19_imputed_beagle_biallelic.vcf.gz.recode.vcf.
End time: Wed Mar 13 12:51:23 2019
However, Plink 1.9 works on the same file just fine (but I cant use the --export haps command using 1.9)
plink1.9 --vcf chr.19_imputed_beagle_biallelic.vcf.gz.recode.vcf --geno 0.1 --make-bed --out delete_this
PLINK v1.90b3.31 64-bit (3 Feb 2016)
https://www.cog-genomics.org/plink2(C) 2005-2016 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to delete_this.log.
Options in effect:
--geno 0.1
--make-bed
--out delete_this
--vcf chr.19_imputed_beagle_biallelic.vcf.gz.recode.vcf
1029911 MB RAM detected; reserving 514955 MB for main workspace.
--vcf: delete_this-temporary.bed + delete_this-temporary.bim +
delete_this-temporary.fam written.
696306 variants loaded from .bim file.
1502 people (0 males, 0 females, 1502 ambiguous) loaded from .fam.
Ambiguous sex IDs written to delete_this.nosex .
Using 1 thread (no multithreaded calculations invoked.
Before main variant filters, 1502 founders and 0 nonfounders present.
Calculating allele frequencies... done.
0 variants removed due to missing genotype data (--geno).
696306 variants and 1502 people pass filters and QC.
Note: No phenotypes present.
--make-bed to delete_this.bed + delete_this.bim + delete_this.fam ... done.
Some other VCF files do work under this command on Plink2 so I am unsure what the problem is. Can anyone help?
Thank you.