hi i want to translate the single letter aminoacid code to triple letter code. how can i do that using tr///; command. can any one help me.

Recommended Answers

All 2 Replies

The tr/// operator replaces individual characters with individual characters. It cannot be used to replace one character with three characters. You can write a little Perl script to translate single character codes to triple character codes but tr/// does not do it. See this thread where vignesh31 asked the same question.

hi thanks for your reply.

i got clarified with your answer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.