Bmerge Files In Plink
1
3
Entering edit mode
12.8 years ago
Zhshqzyc ▴ 520

Hello,

I have 23 chromsome binary files (.bim .fam .bed), is there a plink command merge them together? Suppose they are in different folders such as 1,2,3....23

Thanks

plink • 11k views
ADD COMMENT
0
Entering edit mode
12.8 years ago

plink --noweb --make-bed --bfile [?] --merge-list list.txt --out [?]

[?]first basename[?] is the base name (i.e. WITHOUT the .bed, .bim or .fam suffix) of one of the chromosomes' file sets, while list.txt contains the filenames of the other chromosomes' file sets (i.e. all except the one given on the command line), but this time WITH the .bed, .bim or .fam suffix

second.bed second.bim.second.fam
third.bed third.bim.third.fam

You can use paths in this file i.e. /path/to/second.bed etc. I don't know if the order of the files on each line matters.

Plink may be very useful, but its command line interface can be confusing.

ADD COMMENT
1
Entering edit mode

Ignore it.

PLINK --bfile basefile --merge-list allfiles.txt --make-bed --out

Detected that binary PED file is v1.00 SNP-major mode WARNING DUPLICATE MARKERS FOUND *** Duplicate marker name found: [ rs1051740 ] Duplicate marker name found: [ rs10924425 ]

Using merge mode 1 : consensus call (default) Problem encountered merging files, with the following markers: rs1051740 rs10924425 [ dump info: sizes = 415906 and 415908 ]

ERROR: Cannot merge files. Check your MAP files. Press any key to continue . . .

ADD REPLY
0
Entering edit mode

I used the binary files. Can you look at this: Analysis started: Mon Jul 25 14:12:09 2011

Options in effect: --make-bed --bfile --merge-list allfiles.txt --out

ERROR: No file [ --merge-list.fam ] exists. Press any key to continue . . .

ADD REPLY
0
Entering edit mode

Ignore it.

My command

PLINK --bfile basefile --merge-list allfiles.txt --make-bed --out

Detected that binary PED file is v1.00 SNP-major mode WARNING DUPLICATE MARKERS FOUND *** Duplicate marker name found: [ rs1051740 ] Duplicate marker name found: [ rs10924425 ]

Using merge mode 1 : consensus call (default) Problem encountered merging files, with the following markers: rs1051740 rs10924425 [ dump info: sizes = 415906 and 415908 ]

ERROR: Cannot merge files. Check your MAP files. Press any key to continue . . .

ADD REPLY
0
Entering edit mode

[code]Ignore it. My command PLINK --bfile basefile --merge-list allfiles.txt --make-bed --out Detected that binary PED file is v1.00 SNP-major mode * WARNING DUPLICATE MARKERS FOUND ** Duplicate marker name found: [ rs1051740 ] Duplicate marker name found: [ rs10924425 ] Using merge mode 1 : consensus call (default) Problem encountered merging files, with the following markers: rs1051740 rs10924425 [ dump info: sizes = 415906 and 415908 ] ERROR: Cannot merge files. Check your MAP files. Press any key to continue . . . –[/code]

ADD REPLY
0
Entering edit mode

Plink is trying to merge the files, but it is finding that some SNPs are duplicated. You should check your inputs to find out why.

ADD REPLY

Login before adding your answer.

Traffic: 2640 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