Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: How can I do this action WITHOUT split?

by ww (Archbishop)
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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075843]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-01-21 17:07 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (228 votes). Check out past polls.