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
- msgpack-c >=1.0 (e.g.
libmsgpack-dev
on Debian)
- demo.c: Load a MMTF file
- traverse.c: Iterate over atoms and bonds
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
- PyMOL uses
mmtf-c
for loading MMTF files (andmmtf-cpp
for exporting them)