This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Convert Cdna To Amino Acid Iteratively 3 Base Pairs At A Time?

How can i iteratively go through a cDNA sequence in both directions of a genomic location three bases at a time and stop on an amino acid K or an R or maybe miss the first K or R and stop on the next one in both directions.

What is the most efficient way of doing it is? Maybe perl or R or python?

Example image:

enter image description here

Any help is really appreciated. Thanks.

cdna protein convert amino-acids

Hi Hmm. This is an especially badly formulated question in my opinion. It is really vague and almost beg for useless answers. Here is my answer: 'Python'. I guess it does not really help you, and that is because your question misses a lot of information.

For example, we don't know what you are trying to accomplish. Maybe if you explained the context in more details somebody could tell you what tool to use for that purpose. Second, you do not show what you have done so far. Is the only step you have done posting this question? What have you tried? Third, you ask for advice about the most efficient (whatever it means in that context) way to do what you want and you suggest 3 programming languages. There is simply no way to answer that question satisfactorily. Finally, this question sounds like you want a random stranger to write that code for you while showing almost no effort on your part.

If you think you will have that kind of problems with sequences often in the next weeks/months/years of your project/career, I highly suggest that you do take time to learn R (easy to learn and a good introduction to programming in general) and then another language of your choice. I favour Python but the most important factors are 1) use what you like/feel comfortable with 2) use what people around you are using. Please take time to post more meaningful questions in the future and be sure to go back to your old questions and choose a good answer if there was one. Cheers.

0 answers

No answers yet.

Log in to answer this question.