Skip to content

Commit

Permalink
fixed sbml export error in gapseq adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
jotech committed Mar 22, 2024
1 parent dd8576d commit 6fefcb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/adapt.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ if( "cplexAPI" %in% rownames(installed.packages()) ){
if ( is.null(opt$model) ) { opt$model = paste0(script.dir,"/../toy/myb71.RDS")}
if ( is.null(opt$verbose) ) { opt$verbose = F }
if ( is.null(opt$output.dir) ) { opt$output.dir = "." }
if ( is.null(opt$sbml.no.output) ) { opt$sbml.no.output = F }

# overwrite -f Option with default (This option might be used in future for a different purpose)

Expand All @@ -89,9 +90,7 @@ output.dir <- opt$output.dir
verbose <- opt$verbose
min.growth <- opt$min.growth
mod.id <- opt$id

# Parameters:
sbml.export <- FALSE
sbml.no.output <- opt$sbml.no.output

# Little helpers
source(paste0(script.dir,"/add_missing_exRxns.R"))
Expand Down Expand Up @@ -290,7 +289,7 @@ if(is.null(mod.id)){
out.rds <- paste0(output.dir,"/",out.id,"-adapt",".RDS")
saveRDS(mod.out, file = out.rds)
# Write SBML
if(!opt$sbml.no.output){
if(!sbml.no.output){
source(paste0(script.dir,"/sbml_write.R"))
write_gapseq_sbml(mod.out, paste0(output.dir,"/",out.id, "-adapt"))
}

0 comments on commit 6fefcb5

Please sign in to comment.