in reply to Re: Problem computing GC content
in thread Problem computing GC content

But it doesn't solve the problem because it continues on computing just one sequence.

Replies are listed 'Best First'.
Re^3: Problem computing GC content
by AnomalousMonk (Archbishop) on Jul 13, 2014 at 23:30 UTC

    It wasn't intended to solve "the problem". AppleFritter has already offered what seems an adequate solution to the problem — although I must admit that my understanding of the problem may be very defective.

    What I wanted to offer was an approach to solving a portion of the problem: quickly counting the number of 'G' and 'C' characters in a string. One very Perlish way to do something like this is by using the tr operator.

Re^3: Problem computing GC content
by ww (Archbishop) on Jul 13, 2014 at 22:51 UTC


    Data! SHOW US THE DATA!


    Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
    1. code
    2. verbatim error and/or warning messages
    3. a coherent explanation of what "doesn't work actually means.

    check Ln42!