Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 examining the Monastery: (5)
As of 2015-11-27 14:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (730 votes), past polls