Skip to content
/ mmtf-c Public

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

License

Notifications You must be signed in to change notification settings

rcsb/mmtf-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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