title: Plink Error while converting to binary: Line 1 of .ped file has fewer tokens than expected
body: <p>Can I get some help here? Has anyone experienced the following error in plink (Whole genome association analysis toolset) while converting from 'ped','map' format to the binary counterpart 'bed','bim','fam'? I am using Linux and plink v1.90b3j.</p>
  
  <pre><code>Error: Line 1 of .ped file has fewer tokens than expected.
  </code></pre>
  
  <p>I am using this command in a python script to run it over dozens of files:</p>
  
  <p><code>plink --file S205 --out S205 --make-bed</code></p>
  
  <p>For only 2 files out of the 32, in this case, I get this error. The file is exactly like all other since they are also all done previously with the same script. Family, paternal, maternal IDs and sex are all the same for all samples, and as I said, the allelic information is written exactly in the same way as all other 30 working files.</p>
  
  <p>I noticed that the error changes to the following when I change the line ending encoding to "Windows". Other good files work with any type of line ending (Unix, Win, Mac).</p>
  
  <pre><code>Error: Line 4009 of .bim file has fewer tokens than expected.
  </code></pre>
  
  <p>As an example I leave here the first and last X columns of a working *.ped (S209) and of a non-working (S204).</p>
  
  <pre><code>S209 S209 0 0 1 1 C C C C T T T T ... G G G G G G 
  
  S204 S204 0 0 1 1 T T T T G G G G ... G G G G C C 
  </code></pre>
  
  <p>Thanks!
  Daniel</p>