FIND A SPECIFIC ELEMENT WITHIN A LIST OF GENE SYMBOLS
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello everybody,
Could anyone suggest to me which kind of function I can use to find a specifi element whithin a list of gene symbols? I tried to use find but I couldn't get what I needed. Probably, I didn't use this function in a proper way.
Thanks for your help
4 Commenti
Risposta accettata
Più risposte (1)
darova
il 24 Apr 2020
Try this
A = readtable('data.txt','delimiter','\t')
GENE = table2array(A(:,2)); % convert to cell
ix = strfind(GENE, 'Copg1'); % search in each cell
ix = cellfun(@isempty,ix); % find empty cells
A(~ix,1) % display ID
16 Commenti
Vedere anche
Categorie
Scopri di più su Cell Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!