Skip to main content

QIIME 2 plugin for metabolic modeling of microbial communities.

Project description

Test and deploy codecov PyPI version

A QIIME 2 plugin for MICOM.

Installation

You will need an existing QIIME 2 environment. Follow the instructions on (how to install QIIME 2) otherwise. Let's assume that environment was called qiime2-2021.8 for all further steps.

Add q2-micom to the QIIME 2 environment

This will be the same step for any supported QIIME 2 version or operating systems.

wget https://raw.githubusercontent.com/micom-dev/q2-micom/main/q2-micom.yml
conda env update -n qiime2-2021.8 -f q2-micom.yml
# OPTIONAL CLEANUP
rm q2-micom.yml

Finally, you activate your environment.

conda activate qiime2-2021.8

Install a QP solver (optional)

q2-micom will now install the open source solver OSQP that can be used with MICOM. OSQP is fairly fast and will give solutions with accuracy in the order of 1e-3 - 1e-4. If you use MICOM regularly we do recommend to obtain an academic license for CPLEX which will be faster and more accurate. We do not recommend Gurobi anymore because we can not test it as stringently as the other solvers and it is also slower than CPLEX or OSQP. However, you may still use Gurobi with q2-micom, but things may break.

CPLEX (recommended)

QIIME 2 versions before 2021.4 are only compatible with CPLEX 12.10 or earlier (later version require at least Python 3.7).

After registering and downloading the CPLEX studio for your OS unpack it (by running the provided installer) to a directory of your choice (we will assume it's called ibm).

Now install the CPLEX python package into your activated environment:

pip install ibm/cplex/python/3.6/x86-64_linux

Substitute 3.6 with the Python version in your QIIME 2 environment, 3.6 for QIIME 2 up to 2021.2 and 3.8 for QIIME 2 2021.4 and newer. Substitute x86-64_linux with the folder corresponding to your system (there will only be one subfolder in that directory).

Gurobi (works, but not recommended)

q2-micom is not tested against Gurobi. Consequently Gurobi support is often iffy and might break for periods of time. It will also be much slower than CPLEX or OSQP.

You should only consider using Gurobi if:

  1. You do not have access to CPLEX
  2. You do need high accuracy solutions (tolerance of 1e-6 or lower)

Gurobi can be installed with conda.

conda install -c gurobi gurobi

You will now have to register the installation using your license key.

grbgetkey YOUR-LICENSE-KEY

Finish your installation

If you installed q2-micom in an already existing QIIME 2 environment, update the plugin cache:

conda activate qiime2-2021.8  # or whatever you called your environment
qiime dev refresh-cache

You are now ready to run q2-micom!

Usage

Here is a graphical overview of a q2-micom analysis.

The best way to get started is to work through the community tutorial.

Supported QIIME 2 versions

q2-micom is tested against:

  1. the current QIIME 2 version
  2. the previous version

It should also work with

  1. the development version
    However, this may occasionally break. Check here for the current status.

References

MICOM: Metagenome-Scale Modeling To Infer Metabolic Interactions in the Gut Microbiota
Christian Diener, Sean M. Gibbons, Osbaldo Resendis-Antonio
mSystems 5:e00606-19
https://doi.org/10.1128/mSystems.00606-19

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

q2-micom-0.12.4.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

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

q2_micom-0.12.4-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file q2-micom-0.12.4.tar.gz.

File metadata

  • Download URL: q2-micom-0.12.4.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for q2-micom-0.12.4.tar.gz
Algorithm Hash digest
SHA256 e8f96119421b6982c1b338abb8fd3fc195bc36cf48d89aa42857752ada0c0b45
MD5 974269e618a9483c820e414a263fe785
BLAKE2b-256 5f29b5500b4d1397a4b92427dbd14022eeb3d3bef20158dce3659a676e276bf0

See more details on using hashes here.

File details

Details for the file q2_micom-0.12.4-py3-none-any.whl.

File metadata

  • Download URL: q2_micom-0.12.4-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for q2_micom-0.12.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b066d4bad59b05ebc081297f1bf0d84a7909ca073e8b5d5044b9e6e630fc9e0
MD5 da764999f6a958361926366fca224637
BLAKE2b-256 a24d8b27b0c07e5ab2dcca2ab0ba575e211d756533f329acc2210e1d57aaa290

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