Dna encoding rule1

1 vue (au cours des 30 derniers jours)
lilly lord
lilly lord le 17 Juin 2020
Commenté : lilly lord le 18 Juin 2020
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 commentaires
Ameer Hamza
Ameer Hamza le 18 Juin 2020
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 le 18 Juin 2020
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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Genomics and Next Generation Sequencing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by