gene contains only ATGC
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a list of genes (strings of letters) and I want delete the ones that has letters other than ATGC (N for example). how can I do it?
Thank you!
0 commentaires
Réponse acceptée
Rik
le 10 Juin 2018
You just want to remove the invalid letters? The code below will do that. If you want to check if a gene string is invalid you can check that with any(~L).
gene='ATTCAGN';
L=ismember(gene,'ATGC');
gene=gene(L);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Import, Export, and Conversion 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!