Skip to main content

Merge two or more genome scale metabolic models.

Project description

mergem

mergem is a python package for merging genome-scale metabolic models. The package can be used as a command-line tool or can be imported within a python script.


Installation

To install the latest release

pip install mergem

Usage

For detailed usage instructions, please refer to the help documentation.

Command-line usage

Command-line options can be viewed using "--help" flag, as shown below:

> mergem --help
Usage: mergem [OPTIONS]

Options:
-i TEXT    Input model filenames
-obj TEXT  Set objective: 'merge' all objectives (default) or 1, 2, 3..
         (objective from one of the input models)
-o TEXT    Save model as (filename with format .xml, .sbml, etc.)
-v         Print merging statistics
-up        Update metabolite ID mapping table
--version  Show the version and exit.
--help     Show this message and exit.

For merging two models and setting objective of merged model from first model, use:

mergem -i model1.xml -i model2.xml -obj 1

To print merging statistics, append the "-v" flag:

mergem -i model1.xml -i model2.xml -obj 1 -v 

Importing mergem

To use mergem modules within a python script, simply import the package within the script:

import mergem

Provide the list of models to be merged as a list to the merge function:

merge_results = mergem.merge([model1, model2,..], objective)

where objective can be 'merge' or model index ('1', '2', '3', etc). The merge function returns a dictionary of results including the merged model, the metabolite and reaction jaccard distances of each model with respect to first model, and the metabolite and reaction model sources.


Citation

Please cite mergem using:



Acknowledgements

This package was developed at The Lobo Lab, University of Maryland Baltimore County.


References

The following publications have contributed towards the development of this package:


License

This package is under GNU GENERAL PUBLIC LICENSE. The package is free for use without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, subject to the following restrictions:

  1. The origin of this software and database must not be misrepresented; you must not claim that you wrote the original software.
  2. If you use this software and/or database in a work (any production in the scientific, literary, and artistic domain), an acknowledgment and citation (see publication above) in the work is required.
  3. This notice may not be removed or altered from any distribution.

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

mergem-0.21.tar.gz (62.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mergem-0.21-py3-none-any.whl (63.5 MB view details)

Uploaded Python 3

File details

Details for the file mergem-0.21.tar.gz.

File metadata

  • Download URL: mergem-0.21.tar.gz
  • Upload date:
  • Size: 62.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mergem-0.21.tar.gz
Algorithm Hash digest
SHA256 82e75656253b5a77465895f76a69386cc89de8e39914b791612a23221141c137
MD5 14c64664e5054a28cd2434a67f26c410
BLAKE2b-256 69074c995b0c15b463250f04ee6a2d0b5cc501ed0f54d24a3ee13f476d4d30e8

See more details on using hashes here.

File details

Details for the file mergem-0.21-py3-none-any.whl.

File metadata

  • Download URL: mergem-0.21-py3-none-any.whl
  • Upload date:
  • Size: 63.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mergem-0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 36249a15752eb3e0980294010a5ca5387768fc81054d7aa4251bdfbd5775b0b4
MD5 60a94239d22ec9ef699c63352f422fa9
BLAKE2b-256 f19a5f8ea83d5588264c43fb8d3715b37757146745a3b8d002fa860ebf3ac0fc

See more details on using hashes here.

Supported by

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