Fxe / cobrakbase

KBase Interface for COBRApy
MIT License
2 stars 4 forks source link

Add fva_sol and essential_genes params to KBaseFBABuilder.fromCobra #1

Open braceal opened 4 years ago

braceal commented 4 years ago

fva_sol is the object returned by cobra.flux_analysis import flux_variability_analysis

essential_genes is a set containing the id's of the essential genes.

Ones essential genes is added to the builder object. A simple function could be added:

def gene_essential(self, gene_id):
    return gene_id in self.essential_genes