Skip to content
Snippets Groups Projects
Commit 564829b1 authored by Sajjad Ghaffarinasabsharabiani's avatar Sajjad Ghaffarinasabsharabiani
Browse files

Upload New File

parent 14a5fd4e
No related branches found
No related tags found
No related merge requests found
applyMediaBoundsOnModel <- function(model, medium, uptakeLowBnd=-10){
ex <- findExchReact(model)
lowbnd(model)[react_pos(ex)] <- 0
exOnly <- ex[grep("^EX_", react_id(ex))]
exMap <- react_pos(exOnly)
names(exMap) <- gsub("\\[\\w\\]$", "", met_id(exOnly))
lb <- rep(0, length(exMap))
lb[names(exMap) %in% medium] <- uptakeLowBnd
lowbnd(model)[exMap] <- lb
return(model)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment