Howdy zuepinhel, welcome to the Monastery!
Take a look at your initial while loop. You're assigning to $sequence (and $identifier) in each iteration, so when the loop finishes, $sequence will only contain the last line read, and all the rest of your script will only operate on that.
Try pulling the code following the loop into the loop -- except for closing the file, obviously.
In reply to Re: Problem computing GC content
by AppleFritter
in thread Problem computing GC content
by zuepinhel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |