Hello,
I want to convert .bgen data to plink binary file for imputed SNPs in X chromosome, and use the converted plink binary file to run GWAS.
I did a lot of searching on Google, and the answer I found is that, unlike autosomal chromosomes, I need to add --split-par hg19 to deal with the X chromosome situation.
I first use following code to convert bgen to plink file:
mkdir -p ./sub_maf0.001_biallel_bbf
time ../liaoyi_UKB/EXECUTABLES/plink2 \
--bgen ./sub_chrom_maf0.001_bgen_samp/sub_chromX_maf0.001.bgen ref-last \
--sample ./sub_chrom_maf0.001_bgen_samp/sub_chromX_maf0.001.sample \
--keep ./geno_qc_eids_400k_white_british_2023-11-29.txt \
--maf 0.001 \
--rm-dup 'exclude-all' \
--snps-only 'just-acgt' \
--max-alleles 2 \
--make-bed \
--split-par hg19 \
--out ./sub_maf0.001_biallel_bbf/biallel_sub_chrom${i}_maf0.001;
But I got a warning messgae: Warning: --split-par had no effect (no X variants were in the PARs).
Next, I use the generated plink file to run GWAS but got another warning message: Warning: Skipping --glm regression on phenotype 'pelvic_height', and other(s)
with identical missingness patterns, since covariate correlation matrix could
not be inverted (VIF_INFINITE). You may want to remove redundant covariates and
try again.
I think I didn't convert bgen to plink file correctly. Could you tell me where I did wrong?
Thank you!
Louis