Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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???
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-08-01 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (50 votes), past polls