Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How can I do this action WITHOUT split?

by ww (Bishop)
on Feb 22, 2014 at 18:15 UTC ( #1075843=note: print w/ replies, xml ) Need Help??


in reply to How can I do this action WITHOUT split?

Do you recognize that you'll lose specificity (detail) by doing what you specify?

Since $str_no_dash has a charset of just three alphabetic characters, while $str_with_dash has at least 5 times as many distinct alphas (I didn't use a regex to count for me and I ran out of fingers... ) that the processing you specify is a one-way system. That means there'll be no way to pass on all the detail in $str_with_dash nor to recover all that detail from the result of the processing.

Come, let us reason together: Spirit of the Monastery


Comment on Re: How can I do this action WITHOUT split?
Select or Download Code
Re^2: How can I do this action WITHOUT split?
by Anonymous Monk on Feb 22, 2014 at 23:55 UTC
    No, this was not the question ww...
    The sequence with the 3 letters is the output of a prediction algorithm, which has 3 labels only (in this case I, M and O).
    The sequence with the hyphens is the same sequence but refers to the amino-acid sequence instead (so yes, there are 20 letters in that case).
    If you remove the hyphens, you will see that both sequences are of the same length, so what I wanted is to replace each letter of the amino-acid sequence with the respective predicted label of it.
    Thanks to everyone for answering, now my code runs extremely faster!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2014-08-22 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (160 votes), past polls