--
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/1fa05106-0c8d-4721-8fad-84e8a7df04ffn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/cc8827eb-7e17-4567-bbb2-9939b2e1ef66n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/88843948-06ac-42f1-9065-7a5d756d527en%40googlegroups.com.
PLINK v2.0.0-a.7LM 64-bit Intel (10 Jan 2026)
Options in effect:
--extract /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA/02_result/Pakistan_n16842_unrel_QCed_LD3.prune.in
--freq counts
--out /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA/02_result/Pakistan_n16842_unrel_PCA_loadings
--pca allele-wts 10 vcols=chrom,ref,alt
--pfile /mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed
--remove /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA/02_result/Pakistan_n16842_related_sample.txt
--validate
Hostname: rzhang-vm
Working directory: /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA/01_scripts
Start time: Sat Feb 28 19:31:44 2026
Random number seed: 1772325104
32103 MiB RAM detected, ~31065 available; reserving 16051 MiB for main
workspace.
Using up to 16 threads (change this with --threads).
16665 samples (5484 females, 11181 males; 16665 founders) loaded from
/mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed.psam.
13857821 variants loaded from
/mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed.pvar.
Validating
/mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed.pgen...
done.
1 binary phenotype loaded (8289 cases, 8376 controls).
--extract: 59205 variants remaining.
--remove: 16407 samples remaining.
16407 samples (5370 females, 11037 males; 16407 founders) remaining after main
filters.
8190 cases and 8217 controls remaining after main filters.
Calculating allele frequencies... done.
--freq counts: Allele counts (founders only) written to
/mnt/rzhang-disk-1/Pakistan_n16842/03_PCA/02_result/Pakistan_n16842_unrel_PCA_loadings.acount
.
59205 variants remaining after main filters.
Constructing GRM: done.
Correcting for missingness...
Error: Failed to unpack (0-based) variant #16390 in .pgen file.
You can use --validate to check whether it is malformed.
* If it is malformed, you probably need to either re-download the file, or
address an error in the command that generated the input .pgen.
* If it appears to be valid, you have probably encountered a plink2 bug. If
you report the error on GitHub or the plink2-users Google group (make sure to
include the full .log file in your report), we'll try to address it.
End time: Sat Feb 28 19:37:30 2026
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/898d2d6a-5e30-4aac-922c-6ae21dc855d8n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/902c9b1a-a018-455c-a374-d1886efd40cbn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/488748b6-2b9e-4039-92d9-5b5b07d243a2n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/4ea90d47-4561-44ce-8336-a2efab65f6aan%40googlegroups.com.
Thank you! Here is the log using the first debug build:
PLINK v2.0.0-a.7LM 64-bit Intel (28 Feb 2026)
Options in effect:
--debug
--extract /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA_debug/02_result/Pakistan_n16842_unrel_QCed_LD3.prune>
--freq counts
--out /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA_debug/02_result/Pakistan_n16842_unrel_PCA_loadings
--pca allele-wts 10 vcols=chrom,ref,alt
--pfile /mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed
--remove /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA_debug/02_result/Pakistan_n16842_related_sample.txt
Hostname: rzhang-vm
Working directory: /mnt/rzhang-disk-1/Pakistan_n16842/03_PCA_debug/01_scripts
Start time: Sat Feb 28 21:15:16 2026
Random number seed: 1772331316
15999 MiB RAM detected, ~6802 available; reserving 6738 MiB for main workspace.
Using up to 16 threads (change this with --threads).
16665 samples (5484 females, 11181 males; 16665 founders) loaded from
/mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed.psam.
13857821 variants loaded from
/mnt/rzhang-disk-1/Pakistan_n16842/02_QC/02_QCed_data/09_af_comp/Pakistan_n16842_QCed.pvar.
1 binary phenotype loaded (8289 cases, 8376 controls).
--extract: 59205 variants remaining.
--remove: 16407 samples remaining.
16407 samples (5370 females, 11037 males; 16407 founders) remaining after main
filters.
8190 cases and 8217 controls remaining after main filters.
Calculating allele frequencies... done.
--freq counts: Allele counts (founders only) written to
/mnt/rzhang-disk-1/Pakistan_n16842/03_PCA_debug/02_result/Pakistan_n16842_unrel_PCA_loadings.acount
.
59205 variants remaining after main filters.
Constructing GRM: done.
Correcting for missingness... vrtype: 176 dosage_is_relevant: 1
branch 5: ParseAndSaveDeltalistAsBitarr failure
Error: Failed to unpack (0-based) variant #16390 in .pgen file.
You can use --validate to check whether it is malformed.
* If it is malformed, you probably need to either re-download the file, or
address an error in the command that generated the input .pgen.
* If it appears to be valid, you have probably encountered a plink2 bug. If
you report the error on GitHub or the plink2-users Google group (make sure to
include the full .log file in your report), we'll try to address it.
End time: Sat Feb 28 21:21:22 2026
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/558d4368-6fcf-480a-b9ab-01480c39bb1bn%40googlegroups.com.
Constructing GRM: done.
Correcting for missingness... 0%record size: 9043 bytes
entering ParseAndSaveDeltalistAsBitarr: 3906 bytes remaining
deltalist_len=22
raw_sample_idx=44801 raw_sample_ct=16665 group_idx=0 raw_deltalist_idx_lowbits=0
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/b82c4346-15b4-438c-ac33-ed50bb42d99an%40googlegroups.com.
Constructing GRM: done.
Correcting for missingness... 0%after ReadRawGenovec, 4876 bytes remaining
aux2_first_part_byte_ct: 970
after ParseDifflistHeader, 3903 bytes remaining
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/f448b6e7-f668-44a7-bdeb-bca6aac8839en%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/773d68e3-92bc-4b24-ab2d-6e26c77ea4a0n%40googlegroups.com.