Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Supermodel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sajjad Ghaffarinasabsharabiani
Supermodel
Commits
ef8521d8
Commit
ef8521d8
authored
1 year ago
by
Sajjad Ghaffarinasabsharabiani
Browse files
Options
Downloads
Patches
Plain Diff
Delete initData.R
parent
4f440e6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
networkComplexityBigg/envirDist/initData.R
+0
-50
0 additions, 50 deletions
networkComplexityBigg/envirDist/initData.R
with
0 additions
and
50 deletions
networkComplexityBigg/envirDist/initData.R
deleted
100644 → 0
+
0
−
50
View file @
4f440e6c
initData
<-
function
(){
uptakeLowBnd
<-
-10
bioThreshold
<-
1e-2
#bioThreshold <- 10
print
(
load
(
"~/DATA/universalBiGG.ver2.Rdata"
))
uni
<-
uni2
print
(
load
(
"~/DATA/mediaBiGGwithRandom.Rdata"
))
modelReactMap
[[
"iIS312"
]]
=
append
(
modelReactMap
[[
"iIS312"
]],
c
(
"UMPK_B"
,
"ADKd"
,
"DADNt2_LR"
,
"DGSNt2_LR"
,
"NTD8_B"
,
"TYRabc"
,
"TRPabc"
,
"AMPt6"
,
"CMPt6"
,
"DTMPt6"
,
"DURIK1_1"
,
"DURIt2_B"
,
"MANpts_B"
))
modelReactMap
[[
"iIS312_Amastigote"
]]
=
append
(
modelReactMap
[[
"iIS312_Amastigote"
]],
c
(
"DADK_B"
,
"DGSNt"
,
"DTTPt"
,
"DCTPD2"
,
"DADNt2_LR"
,
"TYRabc"
,
"TRPabc"
,
"MAN6Pt6_2"
,
"AMPt6"
,
"ADADir_LR"
,
"CMPt6"
,
"DCYTt2_B"
,
"DGNSK_1"
))
modelReactMap
[[
"iIS312_Epimastigote"
]]
=
append
(
modelReactMap
[[
"iIS312_Epimastigote"
]],
c
(
"UMPK_B"
,
"ADKd"
,
"DTTPt"
,
"DGSNt2_LR"
,
"NTD8_B"
,
"TYRabc"
,
"TRPabc"
,
"ADADir_B"
,
"AMPt6"
,
"CMPt6"
,
"MAN1Pt6"
,
"DADNt2_B"
,
"DCYTt2_B"
))
modelReactMap
[[
"iIS312_Trypomastigote"
]]
=
append
(
modelReactMap
[[
"iIS312_Trypomastigote"
]],
c
(
"ADKd"
,
"UMPK_copy2_LR"
,
"DGSNt2_LR"
,
"TYRabc"
,
"TRPabc"
,
"F6Pt6_2"
,
"AMPt6"
,
"CMPt6"
,
"DTMPt6"
,
"DADNt2_B"
,
"DGNSK_1"
,
"DURIK1_1"
,
"DURIt2_B"
))
modelReactMap
[[
"iLJ478"
]]
=
append
(
modelReactMap
[[
"iLJ478"
]],
"ASNt2r_LR"
)
modelReactMap
[[
"iSM199"
]]
=
append
(
modelReactMap
[[
"iSM199"
]],
c
(
"LEUTAi"
,
"ILEabc"
,
"VALt2r_LR"
,
"ILETA2_LR"
,
"PHEabc"
))
ex
<-
findExchReact
(
uni
)
exOnly
<-
ex
[
grep
(
"^EX_"
,
react_id
(
ex
))]
exMap
<-
react_pos
(
exOnly
)
names
(
exMap
)
<-
gsub
(
"\\[\\w\\]$"
,
""
,
met_id
(
exOnly
))
# setting media constraints
mediaLowBounds
<-
lapply
(
mediaBiGG
,
function
(
m
){
lb
<-
lowbnd
(
uni
)
lb
[
exMap
]
<-
0
lb
[
exMap
[
names
(
exMap
)
%in%
m
]]
<-
uptakeLowBnd
return
(
lb
)
})
modelReactMapById
<-
lapply
(
modelReactMap
,
function
(
x
){
union
(
match
(
x
,
react_id
(
uni
)),
exMap
)
# this little fucker... adding all exchange reactions to the models.
})
modelBiomassMapSelectionById
<-
match
(
modelBiomassMapSelection
,
react_id
(
uni
))
names
(
modelBiomassMapSelectionById
)
<-
names
(
modelBiomassMapSelection
)
modelRmEnergyCyclesById
<-
lapply
(
modelRmEnergyCycles
,
function
(
x
){
lapply
(
x
,
function
(
y
)
match
(
y
,
react_id
(
uni
)))
})
for
(
i
in
ls
())
assign
(
x
=
i
,
value
=
get
(
i
),
envir
=
.GlobalEnv
)
return
(
T
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment