That's correct - my code assumes two genes per line in the first and second position. I had actually included a comment in my original attempt at solving the problem, but somehow left it out in my post =)
: Can it be assumed then, that a gene starts with "Gene" and the values start with "spc"?