The two lines are what we used to extract SNPs of interest and convert to dosage values.
plink2 --bgen ukb_imp_chr15_v3.bgen ref-first --sample sample.txt --extract SNP.txt --make-bed --out Chr15
plink2 --bfile Chr15 --export A --out Chr15
(0) the header in the Chr15.raw file for a snp is in the format of rsID_T, so, the allele suffix "T" should be the reference allele for the snp, right?
(1)What the dosage value of 0/1/2 code for? The total number of major allele? the total number of reference allele? (seems surely not number of minor alleles)
(2)I also saw the missing values in dosage values for some SNPs, which should not have missing values since the uk data is imputed.
(3) Is --recode A the above user used the same as --export A?
Thank you for your help in advance