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 2.7 or Python 3.

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 or pip

If you are using Anaconda Python, install with

conda install -c conda-forge ihm

Alternatively, install with pip:

pip install ihm

(Note that pip builds a C extension module for faster parsing of mmCIF files. This requires that your system has a C compiler. If you don't want to build the C extension module, install with pip install ihm --install-option="--without-ext".)

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 a C extension module is built for faster parsing of mmCIF files. This requires that your system has a C compiler and SWIG. If either of these components are missing, you can choose to build without the extension by adding --without-ext to both setup.py command lines above.

If you want to read or write BinaryCIF files, 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-0.27.tar.gz (275.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ihm-0.27.tar.gz
  • Upload date:
  • Size: 275.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.10

File hashes

Hashes for ihm-0.27.tar.gz
Algorithm Hash digest
SHA256 f120fe15921b2058190dc3e6d6a4da125d04b90dd4ea486e070dbe9e72d033cf
MD5 eb70bb2953ee939abd5d08aa6634387e
BLAKE2b-256 ff0bf3070ccb12b27e9f0761ce5e5cc712c29300d070a35facc96537d1c4c175

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