in reply to Problem computing GC content
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem computing GC content
by zuepinhel (Initiate) on Jul 13, 2014 at 17:46 UTC | |
by AppleFritter (Vicar) on Jul 13, 2014 at 18:02 UTC | |
by zuepinhel (Initiate) on Jul 13, 2014 at 18:13 UTC | |
by AppleFritter (Vicar) on Jul 13, 2014 at 18:16 UTC | |
by zuepinhel (Initiate) on Jul 13, 2014 at 21:20 UTC | |
| |
by Bethany (Scribe) on Jul 13, 2014 at 18:10 UTC | |
by zuepinhel (Initiate) on Jul 13, 2014 at 18:19 UTC | |
by AnomalousMonk (Archbishop) on Jul 13, 2014 at 20:30 UTC | |
by Bethany (Scribe) on Jul 13, 2014 at 18:51 UTC |