I don't even understand how your script is able to produce that output. For example:
rattus_norvegicus NA NA NA NA NA NA (etc)...
rattus_norvegicus 5 13171176 13038994 -1 132183 NotC
rattus_norvegicus 5 13004812 12917777 -1 87036 NotCo
As far as I can tell, 'rattus norvegicus' at the beginning of a line should come from
@arrayToPrint = ();
my @subArray = ($chrInterval,$startInterval,$endInterval,$block,$orde
But $chrInterval, $startInterval, $endInterval
don't even change during the 'NORMALBLOCK' loop. Why does the output change then? Am I missing something?
And $chrInterval seems an unlikely name for a variable that contains 'rattus norvegicus'?