Skip to content
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

Improve support for non-DNF GPR rules #3

Open
VonAlphaBisZulu opened this issue Jun 22, 2022 · 0 comments
Open

Improve support for non-DNF GPR rules #3

VonAlphaBisZulu opened this issue Jun 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@VonAlphaBisZulu
Copy link
Contributor

Some models, e.g., iCHOv1 from Bigg, do not have GPR rules in DNF form. Improve the handling of such models.

import logging
logging.basicConfig(level=logging.INFO)
import straindesign as sd
import cobra
model = cobra.io.load_model('iCHOv1')
module_suppress = sd.SDModule(model,sd.names.SUPPRESS,constraints='BIOMASS_cho >= 0.001')
# Compute strain designs
sols = sd.compute_strain_designs(model,
                                 sd_modules = module_suppress,
                                 time_limit = 300,
                                 max_solutions = 1,
                                 max_cost = 1,
                                 solution_approach = sd.names.ANY,
                                 gene_kos = True,
                                 solver='cplex')
@VonAlphaBisZulu VonAlphaBisZulu added the bug Something isn't working label Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant