-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluation #1
base: master
Are you sure you want to change the base?
Evaluation #1
Conversation
library(sybilSBML) Solving the question 1model <- readSBMLmod("MODEL1507180017.xml") Solving the issue 1selectedR <- sample(seq_along(modelR), size = 100, replace = FALSE) Subset Model to generate new XMLfilteredModel <- rmReact(model = model, react = model@react_id[!seq_along(modelR) %in% selectedR]) In Pythonimport cobra filteredModel = cobra.io.read_sbml_model('filteredModel.xml') |
The questionHi Dani, thanks for your help. May be I did not express myself clear enough with the question. I understand your code, and thanks at all for the use of the
But, inasmuch as I am planning to supplement several
However it just does not update the object First issueI still get the same error. Did you were able to recreate the error? The data files can be downloaded with the first chunk in the warming up section (line 97). Second issueI am still working on it. As soon as I have some update I will be telling you. |
Hello! :)
There are two issues and 1 question:
Question: In the line 125, I am trying to replace all unauthorised characters in the reactions and update the reaction column of each file:
temp_var <- mget(setdiff(ls(pattern = "react"), lsf.str())) sapply(temp_var[[i]][, 3], function(i) { assign(temp_var[[i]][, 3], mgsub( c("-->", '<==>', '->', "\\(|\\)"), c("=>", '<=>', "=>", ""), temp_var[[i]][, 3] ), envir = .GlobalEnv) })
However, even though the code successfully replace the desired characters, the assign() section is not writing the new column to the file in the workspace. How can I accomplish the above mentioned goal?
Issue: When running the gapfill() function from g2f there is an error raised, which stands:
1050 Orphan reactants found Error in reactionList[validateSyntax(reactionList)] : invalid subscript type 'list'
So I checked where does this list subscript come from:
class(validateSyntax(stm_react$equation)) "logical"
So now I don't know why is this error popping up.
Issue: When executing the gap fill from cobrapy (line 205), there is this error:
Infeasible: gapfilling optimization failed (infeasible)
And, even after look at it in the web there is no useful option to try.
Thank you in advance for your time.
Kind regards.