Skip to main content

Package for handling IHM mmCIF and BinaryCIF files

Project description

DOI docs conda package pypi package Linux Build Status Windows Build Status codecov

This is a Python package to assist in handling mmCIF and BinaryCIF files compliant with the integrative/hybrid modeling (IHM) extension. It works with Python 3.6 or later.

To handle non-integrative theoretical models (for example, homology models), see the python-modelcif package which supports files compliant with the ModelCIF extension.

Please see the documentation or some worked examples for more details.

Installation with conda, Homebrew or pip

If you are using Anaconda Python, install with

conda install -c conda-forge ihm

On a Mac with Homebrew, install with

brew tap salilab/salilab; brew install ihm

On a Fedora or RedHat Enterprise Linux box, install with

dnf copr enable salilab/salilab; dnf install python3-ihm

On an Ubuntu LTS box, install from our PPA with

apt install software-properties-common; add-apt-repository ppa:salilab/ppa;
apt install python3-ihm

Alternatively, install with pip:

pip install ihm

(Note that pip builds a C extension module for faster reading of mmCIF and BinaryCIF files. This requires that your system has a C compiler. If you don't have a C compiler available, the library will read files using pure Python instead.)

Installation from source code

To build and install from a clone of the GitHub repository, run

python setup.py build
python setup.py install

Note that this will attempt to build a C extension module for faster reading of mmCIF and BinaryCIF files. This requires that your system has a C compiler and SWIG. If either of these components are missing, the library will fall back to reading files using pure Python instead.

If you want to write BinaryCIF files (or to read them without the C extension module), you will also need the Python msgpack package.

Testing

There are a number of testcases in the test directory. Each one can be run like a normal Python script to test the library. They can also be all run at once using nose or pytest. They will also test the C extension module if it is first built with python setup.py build_ext --inplace.

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

ihm-2.10.tar.gz (401.2 kB view details)

Uploaded Source

File details

Details for the file ihm-2.10.tar.gz.

File metadata

  • Download URL: ihm-2.10.tar.gz
  • Upload date:
  • Size: 401.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.13

File hashes

Hashes for ihm-2.10.tar.gz
Algorithm Hash digest
SHA256 d77923a7e1c852fa0a8fe3a96054432febdc9ff4e629e5aa85477be541ceae24
MD5 5f8d66903f3448dfd5b500862aca4e8d
BLAKE2b-256 88ecb0d3e8d573ef249e73095ee85ee99167c4c02448ab0a2917a344a5848937

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