Require help in using PLINK flags and scripts
1
0
Entering edit mode
7.8 years ago

Hi all,

I am trying to use some PLINK flags --geno and --maf to do some quality control filtering on my SNPs bed files (bed, bim and fam). The flags seemed to have worked fine but I received this error:

Error: Invalid header bytes in .bed file.

I have no idea what it means since I have been using the bed files for a few times and they had no problem.

I hope someone who is using PLINK would know the answer! Many thanks! Doro

Here is my script:

/{directory}/plink --bfile /{directory}/new_baependi/Baependi_release3_filtered_batch1_3_chr22.impute2 --make-bed --geno 0.05 --maf 0.005 --out / {directory}/Baependi_release3_qc_batch1_3_chr22.impute2

SNP • 3.4k views
ADD COMMENT
0
Entering edit mode

can you post the first few lines from you bed file

ADD REPLY
0
Entering edit mode
7.8 years ago

"Invalid header bytes in .bed file" means that your --bfile parameter does not actually correspond to a PLINK 1 .bed file. In this case, it looks like you have a genotype fileset from IMPUTE2. Did you previously convert it to .bed+.bim+.fam, but accidentally type ".impute2" at the end here?

ADD COMMENT

Login before adding your answer.

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