Finding a string in a string

I'm studying biology and trying to take a sequence from and RNA like for example "AUGCACGGCAAC" and turn it into its aminoacid form like MHGN. I was able to check for aminoacids but I wasn't able to put out the results one after the other in a unified form. Any ideas?

回答(1 个)

Rik
Rik 2021-6-23

0 个投票

Split into groups of 3 (with mat2cell or with regexp), use ismember to find the position of each codon in a dictionary array (which you need to make). Then you can use the positions to index the second part of the dictionary.

类别

在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息

标签

回答:

Rik
2021-6-23

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by