From 6433f9a6bee40f015fe1d02c62b6865ff72638af Mon Sep 17 00:00:00 2001 From: Eduard Kerkhoven Date: Tue, 17 Dec 2024 01:12:27 +0100 Subject: [PATCH] fix: increaseHumanGEMVersion --- code/io/increaseHumanGEMVersion.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/io/increaseHumanGEMVersion.m b/code/io/increaseHumanGEMVersion.m index 538bfd0f..846e81cf 100644 --- a/code/io/increaseHumanGEMVersion.m +++ b/code/io/increaseHumanGEMVersion.m @@ -55,7 +55,7 @@ function increaseHumanGEMVersion(bumpType) ihuman.version = newVersion; %Check if it matches reactions.tsv, metabolites.tsv and genes.tsv -fields = {'rxns','reactions';'mets','metabolites';'genes','genes.tsv'}; +fields = {'rxns','reactions';'mets','metabolites';'genes','genes'}; for i=1:size(fields,1) tsvList = importTsvFile(fullfile(modelPath,'model',[fields{i,2} '.tsv'])); Lia = ismember(ihuman.(fields{i,1}), tsvList.(fields{i,1})); @@ -68,10 +68,10 @@ function increaseHumanGEMVersion(bumpType) %Export model to multiple formats, without annotation writeYAMLmodel(ihuman,fullfile(modelPath,'model','Human-GEM.yml'),false,false); -save(ihuman,fullfile(modelPath,'model','Human-GEM.mat')); +save(fullfile(modelPath,'model','Human-GEM.mat'),'ihuman'); ihuman = annotateGEM(ihuman); % Add annotation data to structure -exportForGit(ihuman,'Human-GEM',modelPath,{'xml', 'xlsx', 'txt'}); +exportForGit(ihuman,'Human-GEM',modelPath,{'xml', 'xlsx', 'txt'},'',false); %Update version file: fid = fopen(versionFile,'wt');