Skip to content

mgxm/mmtf-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mmtf-rs

WARNING: Work In Progress

Build Status Cargo Docs.rs Crates.io

Decoder and Encoder for the Macromolecular Transmission Format (MMTF)

The macromolecular transmission format (MMTF) is a binary encoding of biological structures. It includes the coordinates, the topology and associated data. Specifically, a large subset of the data in mmCIF or PDB files can be represented. Pronounced goals are a reduced file size for efficient transmission over the Internet or from hard disk to memory and fast decoding/parsing speed. Additionally the format aims to be easy to understand and implement to facilitates its dissemination.

For a more detailed information and specifications, please, take a look at their official documentation.

This crate use the deserialize and serialize from Rust MessagePack and their integration with Serde, providing a simple and easily decoder and encoder for MMTF structures

Examples

Decoder

extern crate mmtf;
use std::fd::File;

let file = File::open("/path/to/file.mmtf");
let mmtf = Mmtf::from(file);

TODO Encoder

TODO

  • Encoder

License: Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages