function [proteinIndex]=findProtein(proteinStruct, proteinToFind)
% this function helps one to find the index of a given protein with a known
% name in the PROTEINS struct
% usage: [proteinIndex]=findProtein(PROTEINS, 'SET')

if isempty(proteinStruct)
    proteinIndex=[];
    return
end
proteinNamesCellStruct={proteinStruct.PROTNAME};
proteinIndex=find(strcmp(proteinNamesCellStruct,proteinToFind));