Skip to content
The c/c++ implementation of the MMTF API, decoder and encoder.
C Shell Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
.clang-format
.gitignore
.travis.yml
Doxyfile
LICENSE
README.md
codeformat.sh
deploy-gh-pages.sh

README.md

Build Status License

MMTF C API and decoder

The macromolecular transmission format (MMTF) is a binary encoding of biological structures.

This repository holds the C compatible API and decoding library.

For a C++ API and encoding/decoding library, see https://github.com/rcsb/mmtf-cpp

Dependencies

  • msgpack-c >=1.0 (e.g. libmsgpack-dev on Debian)

Examples

Usage

The library is a single C file, mmtf_parser.c, and an accompanying header file, mmtf_parser.h. Copy both to your project and compile them with your other C files.

For example, here are the command lines to compile a demo using the MMTF parser:

gcc -c mmtf_parser.c
gcc -c demo.c
gcc -o demo mmtf_parser.o demo.o -lmsgpackc

Projects using mmtf-c

  • PyMOL uses mmtf-c for loading MMTF files (and mmtf-cpp for exporting them)
You can’t perform that action at this time.