Skip to main content

A sampling algorithm for convex and non-convex metabolic models

Project description

  • GapSplit is a sampling algorithm designed to generate uniform, high-coverage sample points on any metabolic model

  • regardless of convexity (i.e. logical/integer constraints).

Functions

sample(fname, n_points, lower_bounds=None, upper_bounds=None, n_update=100, n_secondary=0)
  • Generate samples from a given input model.

INPUT:
  • fname - str
    • String representing path to model file (see gurobipy.read() for acceptable file types).

  • n_points - int
    • Number of desired sample points.

  • lower_bounds - list/ndarray, optional
    • FVA minimums for model. Generated if not provided.

  • upper_bounds - list/ndarray, optional
    • FVA maximums for model. Generated if not provided.

  • n_update - int, optional
    • Refresh rate (in points) for console output of current model coverage and sample count.

  • n_secondary - int, optional
    • Number of additional gaps targeted for splitting.

OUTPUT:
  • samples - ndarray
    • n_points by n_reactions array of sample points.

Dependencies

  • gurobipy: 7.0 and up (requires download and license from gurobi.com - license provided free for academic users)

  • numpy: 1.14.5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gapsplit-1.1.0.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

gapsplit-1.1.0-py2-none-any.whl (1.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page