Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Perl code for reverse complement of DNA sequence

by kcott (Archbishop)
on Apr 27, 2021 at 23:51 UTC ( [id://11131770]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl code for reverse complement of DNA sequence
in thread Perl code for reverse complement of DNA sequence

The DNA sequences could be spread over multiple lines; however, the OP sample data only showed single lines. My code dealt with the sample data that was presented.

Records could start with a semicolon. The OP sample data did not show any such records, so I made no attempt to process that either.

There could be errors in the input — for instance, illegally embedded blank lines or letters that didn't represent a nucleotide — which I made no attempt to validate.

I made it clear that the solution I presented was "code something like this". It provides the basic elements of what is required based on what was asked. If there are additional, or different, requirements which the OP cannot code, that should form a follow-up question.

— Ken

  • Comment on Re^3: Perl code for reverse complement of DNA sequence

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found