After further thought, I think the problem is 100% with the Fasta file. The script must be counting characters that it shouldn't be - it should only be counting A, C, G or T and ignoring the header. Is there a way to tell it to skip out anything other than A, C, G or T? For example, I believe...