plink merge vcf files error

101 views
Skip to first unread message

Dung Tran

unread,
Oct 30, 2023, 4:54:47 PM10/30/23
to plink2-users
Hi, 

I want to merge multiple VCF files (different sample ID) using plink merge. I wonder do I need to convert VCF files to PLINK files before merging? I run the code below and got error: "Fail to open .fam file"

My code is: 

"plink --merge-list {list of vcf files} --out {output} --recode vcf bgz"

Please help! 

Thank you,

Dung

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Christopher Chang

unread,
Oct 30, 2023, 11:43:52 PM10/30/23
to plink2-users
From the --merge-list documentation:

"- If a line contains only one name, it is assumed to be the prefix for a binary fileset.
- If a line contains exactly two names, they are assumed to be the full filenames for a text fileset (.ped, then .map). These filesets may not contain multi-character alleles.
- If a line contains exactly three names, they are assumed to be the full filenames for a binary fileset (.bed, then .bim, then .fam)."

Nowhere does it say that VCF files are supported.  You need to convert them to PLINK-format first.
Reply all
Reply to author
Forward
0 new messages