Hello,
I am working with a merged dataset that contains two types of genotype data in the same pgen file:
The merged BCF was created using bcftools merge and converted to pgen format using:
plink2 --bcf merged_file.bcf dosage=DS --make-pgen --out merged_pgenWe verified using --export A that the imputed samples retain fractional dosage values while the reference samples show only integer values (0, 1, 2) in the output.
My questions are:
When running --pca on this merged pgen file, does PLINK2 use dosage values for samples that have DS and hard calls for samples that do not? Or does it convert everything to hard calls first?
Does PLINK2 construct the GRM differently for samples with dosage vs samples with hard calls, or are both treated identically in the matrix computation?
Is there any documentation or reference describing how PLINK2 handles per-sample mixed dosage/hard-call data in PCA specifically?
Context: We found that running --pca on the merged dataset produces biologically correct results (imputed samples cluster within the correct reference population, 142/143 samples within reference PC1 range). In contrast, projecting the imputed samples onto reference PCs using --score with variance-standardize produces a systematic PC1 offset of ~0.240, placing all projected samples completely outside the reference PC1 range (0/143 within range).
Thank you.
--
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 visit https://groups.google.com/d/msgid/plink2-users/46c41b36-4725-4fe0-b47f-2297be7c2168n%40googlegroups.com.