Skip to content

Commit

Permalink
fix: increaseHumanGEMVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Dec 17, 2024
1 parent e26e4da commit 6433f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/io/increaseHumanGEMVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand All @@ -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');
Expand Down

0 comments on commit 6433f9a

Please sign in to comment.