Skip to main content

Package for handling IHM mmCIF and BinaryCIF files

Project description

[![docs](https://readthedocs.org/projects/python-ihm/badge/)](https://python-ihm.readthedocs.org/) [![Linux Build Status](https://travis-ci.org/ihmwg/python-ihm.svg?branch=master)](https://travis-ci.org/ihmwg/python-ihm) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/5o28oe477ii8ur4h?svg=true)](https://ci.appveyor.com/project/benmwebb/python-ihm) [![codecov](https://codecov.io/gh/ihmwg/python-ihm/branch/master/graph/badge.svg)](https://codecov.io/gh/ihmwg/python-ihm)

This is a Python package to assist in handling [mmCIF](http://mmcif.wwpdb.org/) and [BinaryCIF](https://github.com/dsehnal/BinaryCIF) files compliant with the [integrative/hybrid modeling (IHM)](http://mmcif.wwpdb.org/dictionaries/mmcif_ihm.dic/Index/) extension. It works with Python 2.6 or later (Python 3 is fully supported).

Please [see the documentation](https://python-ihm.readthedocs.org/) or some [worked examples](https://github.com/ihmwg/python-ihm/tree/master/examples) for more details.

# Installation with pip

` pip install ihm `

# 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](http://www.swig.org/). 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](https://github.com/dsehnal/BinaryCIF) files, you will also need the Python [msgpack](https://github.com/msgpack/msgpack-python) 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](https://nose.readthedocs.io/en/latest/). 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.4.tar.gz (141.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ihm-0.4.tar.gz
  • Upload date:
  • Size: 141.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for ihm-0.4.tar.gz
Algorithm Hash digest
SHA256 249a764158d595ae08d51eaf7ac27b55d952123aede5948f89ca68b20e05d425
MD5 14132d72b506023c347d74c420dee50c
BLAKE2b-256 0bf058be93449123d7b01d024132b2d003ad7ba9101850620a7806284e7e9baa

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