Skip to content

Commit

Permalink
add uniprot id instead of replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-yu-zhang committed Aug 6, 2023
1 parent d6dc05d commit e7ecad5
Show file tree
Hide file tree
Showing 5 changed files with 11,634 additions and 2,331 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This repository contains the current consensus genome-scale metabolic model of _

| Taxonomy | Latest update | Version | Reactions | Metabolites | Genes |
|:-------|:--------------|:------|:------|:----------|:-----|
| _Saccharomyces cerevisiae_ | 04-Aug-2023 | 8.6.3 | 4099 | 2768 | 1161 |
| _Saccharomyces cerevisiae_ | 06-Aug-2023 | 8.6.3 | 4099 | 2768 | 1161 |

# Installation & usage

Expand Down
21 changes: 17 additions & 4 deletions add_uniprot_id/addUniprotID.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@
fid = fopen('SGD_with_Uniprot.csv');
uniprot = textscan(fid,'%q %q %q','Delimiter',',','HeaderLines',1);
for i = 1:length(model.genes)
ids.name{1, 1} = char("Uniprot ID");
ind = find(strcmp(model.genes{i, 1}, uniprot{1, 1}));
ids.value{1, 1} = uniprot{1, 3}{ind, 1};
model.geneMiriams{i, 1} = ids;
gM = model.geneMiriams(i);
gM = gM{1,1};
if ~isa(gM, 'struct')
ids.name{1, 1} = char('kegg.genes');
ids.name{2, 1} = char('ncbigene');
ids.name{3, 1} = char('refseq');
ids.name{4, 1} = char('uniprot');
ids.name{5, 1} = char('ncbiprotein');
ind = find(strcmp(model.genes{i, 1}, uniprot{1, 1}));
ids.value{4, 1} = uniprot{1, 3}{ind, 1};
ids.value{1, 1} = char('NaN');
ids.value{2, 1} = char('NaN');
ids.value{3, 1} = char('NaN');
ids.value{5, 1} = char('NaN');
model.geneMiriams{i, 1} = ids;
clear ids
end
end
cd ../code/
saveYeastModel(model)
2 changes: 1 addition & 1 deletion model/dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MATLAB 9.11.0.1769968 (R2021b)
libSBML 5.19.0
RAVEN_toolbox 2.8.3
COBRA_toolbox commit fatal:
COBRA_toolbox commit f602a23
Loading

0 comments on commit e7ecad5

Please sign in to comment.