-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename model files to yeast-GEM
- Loading branch information
Showing
15 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ function increaseVersion(bumpType) | |
end | ||
|
||
%Bump version number: | ||
oldModel = load('../model/yeastGEM.mat'); | ||
oldModel = load('../model/yeast-GEM.mat'); | ||
oldVersion = oldModel.model.modelID; | ||
oldVersion = oldVersion(strfind(oldVersion,'_v')+2:end); | ||
oldVersion = str2double(strsplit(oldVersion,'.')); | ||
|
@@ -50,21 +50,21 @@ function increaseVersion(bumpType) | |
|
||
%Load model: | ||
initCobraToolbox | ||
model = readCbModel('../model/yeastGEM.xml'); | ||
model = readCbModel('../model/yeast-GEM.xml'); | ||
|
||
%Include tag and save model: | ||
model.modelID = ['yeastGEM_v' newVersion]; | ||
model.modelID = ['yeast-GEM_v' newVersion]; | ||
saveYeastModel(model,false,false) %only save if model can grow | ||
|
||
%Check if any file changed (except for history.md and 1 line in yeastGEM.xml): | ||
%Check if any file changed (except for history.md and 1 line in yeast-GEM.xml): | ||
diff = git('diff --numstat'); | ||
diff = strsplit(diff,'\n'); | ||
change = false; | ||
for i = 1:length(diff) | ||
diff_i = strsplit(diff{i},'\t'); | ||
if length(diff_i) == 3 | ||
%.xml file: 1 line should be added & 1 line should be deleted | ||
if strcmp(diff_i{3},'model/yeastGEM.xml') | ||
if strcmp(diff_i{3},'model/yeast-GEM.xml') | ||
if eval([diff_i{1} ' > 1']) || eval([diff_i{2} ' > 1']) | ||
disp(['NOTE: File ' diff_i{3} ' is changing more than expected']) | ||
change = true; | ||
|
@@ -98,7 +98,7 @@ function increaseVersion(bumpType) | |
delete('backup'); | ||
|
||
%Store model as .mat: | ||
save('../model/yeastGEM.mat','model'); | ||
save('../model/yeast-GEM.mat','model'); | ||
|
||
%Convert to RAVEN format and store model as .xlsx: | ||
model = ravenCobraWrapper(model); | ||
|
@@ -110,7 +110,7 @@ function increaseVersion(bumpType) | |
model.annotation.email = '[email protected]'; | ||
model.annotation.organization = 'Chalmers University of Technology'; | ||
model.annotation.note = 'Saccharomyces cerevisiae - strain S288C'; | ||
exportToExcelFormat(model,'../model/yeastGEM.xlsx'); | ||
exportToExcelFormat(model,'../model/yeast-GEM.xlsx'); | ||
|
||
%Update version file: | ||
fid = fopen('../version.txt','wt'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters