Skip to content

rcsb/mmtf-c

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

The c/c++ implementation of the MMTF API, decoder and encoder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published