Skip to content
Permalink
ff26052437
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 18 lines (11 sloc) 440 Bytes
function [ idx ] = MatchIDList(map, data, qry)
% get symbols that match
qry_sym = unique(qry);
idx_sym = cellfun(@(x) any(strcmp(x,qry_sym)), map.sym_unq);
qry_pep = unique(map.gid(idx_sym(map.idx_sym_rev)));
[gid_unq,~,gid_unq_rev] = unique(data.gid_ary);
idx_pep = cellfun(@(x) any(strcmp(x,qry_pep)), gid_unq);
pos_pep = data.gid_ary_rev(idx_pep(gid_unq_rev));
idx = false(size(data.length,1),1);
idx(unique(pos_pep)) = true;
end