Merge .bed files from different samples using PLINK
1
1
Entering edit mode
3.6 years ago
yangyx117 ▴ 10

Hi all,

I have 10 separate .bed/.bim/.fam files. These files have the same set of SNPs but from different samples. How can I merge these files into one using PLINK? Seems like PLINK's '--merge' function can only merge files with different SNPs from same samples?

Many thanks!

sequence plink • 5.1k views
ADD COMMENT
1
Entering edit mode
3.6 years ago
zx8754 11k

--merge-list <filename> flag should work, see:

Something like:

plink --merge-list myFile.txt --make-bed --out myMergedOut

Where myFile.txt is:

gwas1.bed gwas1.bim gwas1.fam
gwas2.bed gwas2.bim gwas2.fam
...

or

gwas1
gwas2
...
ADD COMMENT

Login before adding your answer.

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