http://www.perlmonks.org?node_id=1085012


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

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.

Replies are listed 'Best First'.
Re^4: how to access elements in perl
by grewal7634 (Novice) on May 08, 2014 at 04:42 UTC
    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.
        I am learning perl , so can you give me hint how to do this....