Plink --merge-list generating error
1
0
Entering edit mode
3.7 years ago
MAPK ★ 2.1k

I am running plink --merge-list to merge plink files, but not sure why I am getting this error below. Can someone please help me troubleshoot this? Thanks!

[aneu@HPC test]$ cat mylist.list

chr12.bed
chr12.bim
chr12.fam
chr13.bed
chr13.bim
chr13.fam
chr14.bed
chr14.bim
chr14.fam

[aneu@HPC test]$ ls

chr12.bed chr12.bim  chr12.fam  chr13.bed chr13.bim chr13.fam  chr14.bed  chr14.bim chr14.fam mylist.list

[aneu@HPC]$ plink1.9 --bfile --merge-list mylist.list --make-bed --out merged

PLINK v1.90b6.4 64-bit (7 Aug 2018)            www.cog-genomics.org/plink/1.9/
(C) 2005-2018 Shaun Purcell, Christopher Chang   GNU General Public License v3
Logging to merged.log.
Options in effect:
  --bfile
  --make-bed
  --memory 100000
  --merge-list mylist.list
  --out merged
  --threads 12

773748 MB RAM detected; reserving 100000 MB for main workspace.
Error: Failed to open plink.bed.
[aneu@ test]$
plink • 3.5k views
ADD COMMENT
2
Entering edit mode
3.7 years ago
Sam ★ 4.7k

You need to provide a reference file with the --bfile field.

Using your example, you will have a merge list of

chr13
chr14

then you can do

./plink \
  --bfile chr12 \
  --make-bed \
  --memory 100000 \
  --merge-list mylist.list \
  --out merged \
  --threads 12
ADD COMMENT
0
Entering edit mode

Thanks, that actually worked. I don't know why they had this on their instructions.

--merge-list <filename>

This allows you to merge more than one fileset to the reference fileset. (Also, this can be used without a reference; in that case, the newly created fileset is then treated as the reference by most other PLINK operations.)

ADD REPLY
1
Entering edit mode

I guess that's because you included --bfile in your original command

ADD REPLY

Login before adding your answer.

Traffic: 2110 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6