Attached are the test files to replicate the negative allele frequency, including test_bfile.tar.gz, test_bgen.tar.gz and test_gwas.tar.gz.
Step 1: convert bfile to bgen (v1.2)
plink2 \
--bfile test \
--export bgen-1.2 \
--out test_bgen \
--extract five_snps.txt
bgenix \
-g test_bgen.bgen \
-index
After applying the above code on test_bfile.tar.gz, I got bgen files, which are saved in test_bgen.tar.gz. And then,
Step 2: run GWAS with bgenie
bgenie/v1.2/bgenie_v1.2_static1 \
--bgen test_bgen.bgen \
--pheno test_pheno.txt \
--out test_gwas
gunzip -c test_gwas.gz > test_gwas
We can get GWAS results, which are saved in test_gwas.tar.gz
So, we can see several SNPs have negative allele frequency, which is indicated by "af" in test_gwas file. PS. "af" is the short name of "allele frequency".
Do you have any thoughts about this error? Any thoughts are welcome.
Best,
Cain
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/3d65b978-8b83-4c22-9c31-9412b5c7f04cn%40googlegroups.com.