diff --git a/io/exportModel.m b/io/exportModel.m index fa9c64ed..9bc7c4da 100755 --- a/io/exportModel.m +++ b/io/exportModel.m @@ -222,11 +222,6 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) end if isfield(modelSBML.compartment,'metaid') - if ~isnan(str2double(model.comps(i))) - EM='The compartment IDs are in numeric format. For the compliance with SBML specifications, compartment IDs will be preceded with "c_" string'; - dispEM(EM,false); - model.comps(i)=strcat('c_',model.comps(i)); - end modelSBML.compartment(i).metaid=model.comps{i}; end %Prepare Miriam strings @@ -281,13 +276,13 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) end if isfield(modelSBML.species,'metaid') - modelSBML.species(i).metaid=['M_' model.mets{i}]; + modelSBML.species(i).metaid=model.mets{i}; end if isfield(modelSBML.species, 'name') modelSBML.species(i).name=model.metNames{i}; end if isfield(modelSBML.species, 'id') - modelSBML.species(i).id=['M_' model.mets{i}]; + modelSBML.species(i).id=model.mets{i}; end if isfield(modelSBML.species, 'compartment') modelSBML.species(i).compartment=model.comps{model.metComps(i)}; @@ -329,7 +324,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) end end if ~isempty(model.metMiriams{i}) || hasInchi==true - modelSBML.species(i).annotation=['']; + modelSBML.species(i).annotation=['']; modelSBML.species(i).annotation=[modelSBML.species(i).annotation '']; if ~isempty(model.metMiriams{i}) modelSBML.species(i).annotation=[modelSBML.species(i).annotation getMiriam(model.metMiriams{i})]; @@ -475,7 +470,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) end if isfield(modelSBML.reaction,'metaid') - modelSBML.reaction(i).metaid=['R_' model.rxns{i}]; + modelSBML.reaction(i).metaid=model.rxns{i}; end %Export notes information @@ -507,7 +502,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) %Export annotation information from rxnMiriams if (~isempty(model.rxnMiriams{i}) && isfield(modelSBML.reaction(i),'annotation')) || ~isempty(model.eccodes{i}) - modelSBML.reaction(i).annotation=['']; + modelSBML.reaction(i).annotation=['']; modelSBML.reaction(i).annotation=[modelSBML.reaction(i).annotation '']; if ~isempty(model.eccodes{i}) eccodes=regexp(model.eccodes{i},';','split'); @@ -522,7 +517,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) modelSBML.reaction(i).name=model.rxnNames{i}; end if isfield(modelSBML.reaction, 'id') - modelSBML.reaction(i).id=['R_' model.rxns{i}]; + modelSBML.reaction(i).id=model.rxns{i}; end %Add the information about reactants and products @@ -574,7 +569,7 @@ function exportModel(model,fileName,exportGeneComplexes,supressWarnings) modelSBML.groups_group.sboTerm = 633; tmpStruct=modelSBML.groups_group; - rxns=strcat('R_',model.rxns); + rxns=model.rxns; if ~any(cellfun(@iscell,model.subSystems)) if ~any(~cellfun(@isempty,model.subSystems)) subSystems = {};