However, the following is the output:
PLINK v2.00a2LM 64-bit Intel (7 Mar 2018) www.cog-genomics.org/plink/2.0/
2 (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3
3 Logging to ENSG00000205693.log.
4 Options in effect:
5 --chr 12
6 --from-bp 26915671
7 --make-bed
8 --out ENSG00000205693
9 --pgen ubk_chr12.pgen
10 --psam ubk_chr12.psam
11 --pvar ubk_chr12.pvar
12 --to-bp 28924209
13
14 Start time: Fri Mar 9 11:03:47 2018
15 128892 MB RAM detected; reserving 64446 MB for main workspace.
16 Using up to 16 threads (change this with --threads).
17 487409 samples (264362 females, 223033 males, 14 ambiguous; 487409 founders)
18 loaded from ubk_chr12.psam.
19 4431052 variants loaded from ubk_chr12.pvar.
20 Note: No phenotype data present.
21 64279 variants remaining after main filters.
22 Writing ENSG00000205693.bed ... 0%
23 Error: File write failure.
24 End time: Fri Mar 9 11:04:39 2018
I have checked the output file ENSG00000205693.bed. It is only a 2Gb file and my cluster has fair enough disk volume. So why it happens? I don't know whether it is a bug of plink2 or other problems caused this error. Thanks for someone may help me!
Peng
Can you post the .log file from your latest failed run? Thanks.
PLINK v2.00aLM 64-bit Intel (5 Jan 2018)
Options in effect:
--make-bed
--memory 64000
--out /oak/stanford/groups/mrivas/users/jwrchen/sandbox/array/ukb_imp_chr21_v2.mac1.hrc
--pgen /scratch/PI/mrivas/ukbb/24983/imp_pgen_1372/ukb_imp_chr21_v2.mac1.hrc.pgen
--psam /scratch/PI/mrivas/ukbb/24983/imp_pgen_24983/ukb24983_imp_chr21_v2.fam
--pvar /scratch/PI/mrivas/ukbb/24983/imp_pgen_1372/ukb_imp_chr21_v2.mac1.hrc.pvar
--threads 8
Hostname: sh-101-49.int
Working directory: /oak/stanford/groups/mrivas/users/jwrchen/sandbox/array
Start time: Sun Apr 1 14:24:25 2018
Random number seed: 1522617865
128656 MB RAM detected; reserving 64000 MB for main workspace.
Using up to 8 compute threads.
487409 samples (0 females, 0 males, 487409 ambiguous; 487409 founders) loaded
from /scratch/PI/mrivas/ukbb/24983/imp_pgen_24983/ukb24983_imp_chr21_v2.fam.
531237 variants loaded from
/scratch/PI/mrivas/ukbb/24983/imp_pgen_1372/ukb_imp_chr21_v2.mac1.hrc.pvar.
Note: No phenotype data present.
Writing
/oak/stanford/groups/mrivas/users/jwrchen/sandbox/array/ukb_imp_chr21_v2.mac1.hrc.bed
...
Error: File write failure.
~/bin/plink2_linux_avx2_20191122/plink2 \
--import-dosage just_a_test.plink.dosage noheader format=1 \
--fam just_a_test.plink.fam \
--map just_a_test.plink.map \
--out just_a_test.OUT \
--allow-extra-chr --sort-vars \
--make-pgen --debug
Segmentation fault