diff --git a/core/checkModelStruct.m b/core/checkModelStruct.m index 26ba7b7f..c958247d 100755 --- a/core/checkModelStruct.m +++ b/core/checkModelStruct.m @@ -363,39 +363,6 @@ function checkModelStruct(model,throwErrors,trimWarnings) EM='The following InChI strings are associated to more than one unique metabolite name:'; dispEM(EM,false,allInchis(hasMultiple),trimWarnings); end - -%Check if there are metabolites with different names but the same SMILES -if isfield(model,'metSmiles') - metSmiles=containers.Map(); - for i=1:numel(model.mets) - if ~isempty(model.metSmiles{i}) - %Get existing metabolite indexes - if isKey(metSmiles,model.metSmiles{i}) - existing=metSmiles(model.metSmiles{i}); - else - existing=[]; - end - metSmiles(model.metSmiles{i})=[existing;i]; - end - end - - %Get all keys - allmetSmiles=keys(metSmiles); - - hasMultiple=false(numel(metSmiles),1); - for i=1:numel(metSmiles) - if numel(metSmiles(metSmiles{i}))>1 - %Check if they all have the same name - if numel(unique(model.metNames(metSmiles(allmetSmiles{i}))))>1 - hasMultiple(i)=true; - end - end - end - - %Print output - EM='The following metSmiles strings are associated to more than one unique metabolite name:'; - dispEM(EM,false,allmetSmiles(hasMultiple),trimWarnings); -end end function I=duplicates(strings) diff --git a/doc/core/checkModelStruct.html b/doc/core/checkModelStruct.html index aa97a7b9..18a56263 100644 --- a/doc/core/checkModelStruct.html +++ b/doc/core/checkModelStruct.html @@ -422,50 +422,17 @@