Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: how to access elements in perl

by grewal7634 (Novice)
on May 05, 2014 at 07:17 UTC ( #1085008=note: print w/ replies, xml ) Need Help??


in reply to Re: how to access elements in perl
in thread how to access elements in perl

If we want to calculate G+C and percentage of G+C then how can we do that using this code?


Comment on Re^2: how to access elements in perl
Re^3: how to access elements in perl
by BrowserUk (Pope) on May 05, 2014 at 07:50 UTC
    If we want to calculate G+C

    Add $counts{ C } + $counts{ G }.

    ... and percentage of G+C

    Multiply the above sum by 2.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Actually i want to check ATGC , GC COUNT and GC percentage in 0-200, 1-201, 2-202... upto 1000 sequence and if GC percentage is more than 50% then to print that region.
        Actually i want to ...

        Then do so. (Whatever that means?)

        What is stopping you?


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085008]
help
Chatterbox?
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: (7)
As of 2014-09-17 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls