PLINK v1.90b6.15 64-bit (21 Jan 2020) www.cog-genomics.org/plink/1.9/
(C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to /data/chromosomes/all/PCA_train.log.
Options in effect:
--bfile /data/chromosomes/all/everything_chr_edt
--extract /data/chromosomes/all/for_pca.prune.in
--keep /home/p_10_4/females_list
--out /data/chromosomes/all/PCA_train
--pca 4
773975 MB RAM detected; reserving 386987 MB for main workspace.
805426 variants loaded from .bim file.
488377 people (223477 males, 264811 females, 89 ambiguous) loaded from .fam.
Ambiguous sex IDs written to /data/chromosomes/all/PCA_train.nosex
.
--extract: 421691 variants remaining.
--keep: 209940 people remaining.
Using up to 31 threads (change this with --threads).
Before main variant filters, 209940 founders and 0 nonfounders present.
Calculating allele frequencies... done.
Total genotyping rate in remaining samples is 0.965961.
421691 variants and 209940 people pass filters and QC.
Note: No phenotypes present.
Excluding 9911 variants on non-autosomes from relationship matrix calc.
Relationship matrix calculation complete.
Error: Out of memory. The --memory flag may be helpful.
Failed allocation size: 352598428800
When I check my memory in the hpc :
State: FAILED (exit code 1)
Nodes: 1
Cores per node: 32
CPU Utilized: 35-16:12:19
CPU Efficiency: 80.14% of 44-12:24:32 core-walltime
Job Wall-clock time: 1-09:23:16
Memory Utilized: 246.33 GB
Memory Efficiency: 33.68% of 731.45 GB
So there is enough memory. What would be the reason for this error? Is there any other way to calculate PCA for all these subjects with all these variants?
When I worked with lesser number of subjects (10%), it worked without an issue.
Thanks.
Djon