Source code for padmet_utils.connection.extract_rxn_with_gene_assoc

# -*- coding: utf-8 -*-
    From a given sbml file, create a sbml with only the reactions associated to a gene.

    Need for a reaction, in section 'note', 'GENE_ASSOCIATION': ....


    usage: --sbml=FILE --output=FILE [-v]
        -h --help     Show help.
        --sbml=FILE    path to the sbml file
        --output=FILE    path to the sbml output (with only rxn with genes assoc)
        -v   print info
from padmet.utils.connection import extract_rxn_with_gene_assoc
import docopt

[docs]def main(): args = docopt.docopt(__doc__) sbml = args["--sbml"] output = args["--output"] verbose = args["-v"] extract_rxn_with_gene_assoc.extract_rxn_with_gene_assoc(sbml, output, verbose)
if __name__ == "__main__": main()