フィルターのクリア

gene contains only ATGC

4 ビュー (過去 30 日間)
Oded Scharf
Oded Scharf 2018 年 6 月 10 日
回答済み: Rik 2018 年 6 月 10 日
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!

採用された回答

Rik
Rik 2018 年 6 月 10 日
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 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by