From 1c0e32f4f8f1321db723aa1cf4c8d45a2feb121d Mon Sep 17 00:00:00 2001 From: Hao Wang Date: Thu, 12 Aug 2021 18:37:56 +0200 Subject: [PATCH] fix: remove prefix `c_` and remaining `R_` --- io/exportModel.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/io/exportModel.m b/io/exportModel.m index db456d8c..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 @@ -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');