Dna encoding rule1

1 回表示 (過去 30 日間)
lilly lord
lilly lord 2020 年 6 月 17 日
コメント済み: lilly lord 2020 年 6 月 18 日
Hi I have an issue storing the DNA sequenc using for loop. If some one can help me.
x=[2 34 50 21];
[m n]=size(x);
mn=m*n;
P= [];
for i=1:length(x)
Q= convert_to_dna2(x(i));
P=Q(i);
end
output is 'GGGA'%error
requirment CAAACACACATAGGGA
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 6 月 18 日
How is the function convert_to_dna2 defined? What is the mapping rule between x=[2 34 50 21] and CAAACACACATAGGGA.
lilly lord
lilly lord 2020 年 6 月 18 日
The problem has resolved.
for i=1:length(x)
Q= convert_to_dna2(x(i));
Q= [Q convert_to_dna2(x(i))];%concatinate the sequence
end
Thanks for your reply

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGenomics and Next Generation Sequencing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by