nan in .bim file generated by plink
1
0
Entering edit mode
9.5 years ago
dharl ▴ 70

Hi all..

I used plink to generate .bed, .bim and .fam files from .ped and .map files. This conversion worked well.

When I access the .bim file, I find nan in the third column in one of the lines of the .bim file, like this:

1    rs2027305    nan    245672356    A    G

This seems to happen after the conversion from .ped and .map file to .bed files. Because of this I am unable to use the .bim file for any analysis and the following error:

ERROR: Problem reading BIM file, line 50602

Kindly let me know if anyone has encountered this and how this should be handled.

plinksnp • 3.1k views
ADD COMMENT
3
Entering edit mode
9.5 years ago

As a temporary measure, you can replace the "nan" with whatever third column value was present on the previous row. For most purposes, it's also safe to just replace all third column values with "0".

ADD COMMENT
0
Entering edit mode

Thanks a lot. As of now I have replaced the values of NaNs with a zero. I do not know yet how this will affect the analysis if I do what you have suggested. I will let you know though...

ADD REPLY

Login before adding your answer.

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