Skip to content

Commit

Permalink
Merge pull request #167 from SysBioChalmers/fix/model_id
Browse files Browse the repository at this point in the history
fix: remove dash from model ID while exporting to SMBL format
  • Loading branch information
haowang-bioinfo authored Apr 22, 2020
2 parents 4c06e56 + 250757b commit 9752326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/io/exportHumanGEM.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
model = simplifyModel(ihuman,false,false,true); % remove inactivated rxns
model = annotateModel(model); % add annotation data to structure
model = rmfield(model,'inchis'); % temporarily remove inchis until export function is updated
model.id = regexprep(model.id,'-',''); % remove dash from model ID since it causes problems with SBML I/O
exportModel(model,fullfile(path,'modelFiles','xml',strcat(prefix,'.xml')));
end

Expand Down

0 comments on commit 9752326

Please sign in to comment.