data("Recon2")
database <- Recon2
##Get Model for specific pathway
m1 <- buildSBMLFromPathways("Arginine and Proline Metabolism", database)
##Get Model for specific pathway "Metabolism": does not exist!
m2 <- buildSBMLFromPathways("Metabolism", database)
##Get model of all pathways which contain keyword "metabolism"
m3 <- buildSBMLFromPathways("Metabolism", database, match.exact=FALSE)
##Multi-query:
query <- c("Transport, endoplasmic reticular", "Arginine and Proline Metabolism")
m4 = buildSBMLFromPathways(query, database)
m5 = buildSBMLFromPathways(query[1], database)
length(m4@species)
length(m5@species)
##different database
data(H.pylori_ilT341)
database <- H.pylori_ilT341
m7 <- buildSBMLFromPathways("Metabolism", database, match.exact=FALSE)
Run the code above in your browser using DataLab