Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: What is wrong in this code???

by moritz (Cardinal)
on Dec 07, 2012 at 20:47 UTC ( #1007822=note: print w/ replies, xml ) Need Help??

in reply to What is wrong in this code???

I think I must somewhere set the counters to 0, but the positions I tried just made the script worse...

If you want to count the number of symbols per line or record, you must reset the counters before counting the symbols in each line/record.

Comment on Re: What is wrong in this code???
Replies are listed 'Best First'.
Re^2: What is wrong in this code???
by Anonymous Monk on Dec 07, 2012 at 20:59 UTC
    Yes but where, can you tell me? I tried printing outside the loop, but printed statistics only for the last position (all sequences have the same number of letters, and I want to keep statistics for each position, but for all the sequences. So for example, since I have 200 sequences in my file, for position 56, I could have 150 A, 40 C, 25 G and 35 -.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007822]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-05-26 21:40 GMT
Find Nodes?
    Voting Booth?