Skip to content

Commit

Permalink
Merge pull request #32 from SysBioChalmers/dev
Browse files Browse the repository at this point in the history
Add model for 11 out-group
  • Loading branch information
hongzhonglu authored Nov 7, 2019
2 parents 3cbb061 + 543051b commit 69044ef
Show file tree
Hide file tree
Showing 140 changed files with 120,679 additions and 7 deletions.
14 changes: 14 additions & 0 deletions draft_GEM_all_yeast_species/.idea/draft_GEM_all_yeast_species.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions draft_GEM_all_yeast_species/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions draft_GEM_all_yeast_species/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions draft_GEM_all_yeast_species/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions draft_GEM_all_yeast_species/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions draft_GEM_all_yeast_species/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions draft_GEM_all_yeast_species/Change_txt_into_tsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

import os
import csv
os.chdir('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species')
os.chdir('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species')



strain = os.listdir('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_biocyc_55_110/')
strain = os.listdir('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_biocyc_55_110/')
strain = [x for x in strain if x != '.DS_Store']
for x in strain:
print(x)
data = open('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_biocyc_55_110/' + x +'/excelRxns.txt', 'r').readlines()
with open('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_biocyc_55_110/' + x +'/draft_GEM.tsv', mode='w') as file:
data = open('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_biocyc_55_110/' + x +'/excelRxns.txt', 'r').readlines()
with open('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_biocyc_55_110/' + x +'/draft_GEM.tsv', mode='w') as file:
employee_writer = csv.writer(file, delimiter='\t', quotechar='"', quoting=csv.QUOTE_MINIMAL)
for i, line in enumerate(data):
line = line.replace("#", "").lstrip()
Expand All @@ -39,12 +39,12 @@
os.remove(os.path.join(newfname, name2))
'''

strain = os.listdir('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_kegg/')
strain = os.listdir('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_kegg/')
strain = [x for x in strain if x != '.DS_Store']
for x in strain:
print(x)
data = open('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_kegg/' + x +'/excelRxns.txt', 'r').readlines()
with open('/Users/luho/PycharmProjects/3D_model/refine draft strain specific GEM for 332 yeast species/strain specific model from RAVEN_kegg/' + x +'/draft_GEM.tsv', mode='w') as file:
data = open('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_kegg/' + x +'/excelRxns.txt', 'r').readlines()
with open('/Users/luho/Documents/GitHub/Pan_Model_332_Yeast_Species/draft_GEM_all_yeast_species/strain specific model from RAVEN_kegg/' + x +'/draft_GEM.tsv', mode='w') as file:
employee_writer = csv.writer(file, delimiter='\t', quotechar='"', quoting=csv.QUOTE_MINIMAL)
for i, line in enumerate(data):
line = line.replace("#", "").lstrip()
Expand Down
Loading

0 comments on commit 69044ef

Please sign in to comment.