Skip to content

The Java implementation of the MMTF format. Includes the APIs for the data, decoding and encoding libraries. Also includes a reference implementation of the data format.

License

Notifications You must be signed in to change notification settings

valasatava/mmtf-java

 
 

Repository files navigation

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

This repository holds the Java API, encoding and decoding libraries. Along with a description of the data in the MMTF using Java data types.

The alpha release is available on Maven central.

<artifactId>mmtf-decoder</artifactId>
<packaging>pom</packaging>
<version>0.0.1-alpha1</version>
<artifactId>mmtf-api</artifactId>
<packaging>pom</packaging>
<version>0.0.1-alpha1</version>

Or you can clone this repo and install yourself.

Quick getting started.

  1. Get the data for a PDB structure and print the number of chains:
HandleIO handleIO = new HandleIO();
DataApiInterface dataApi = handleIO.getDataApiFromUrlOrFile("4cup");
System.out.println("PDB Code: "+dataApi.getPdbId()+" has "+dataApi.getNumChains()+" chains");
  1. Show the charge information for the first group:
PDBGroup pdbGroup = dataApi.getGroupMap().get(0);
System.out.println("HET group "+pdbGroup.getGroupName()+" has the following atomic charges: "+pdbGroup.getAtomCharges());
  1. Show how many bioassemblies it has:
System.out.println("PDB Code: "+dataApi.getPdbId()+" has "+dataApi.getBioAssembly().size()+" bioassemblies");

About

The Java implementation of the MMTF format. Includes the APIs for the data, decoding and encoding libraries. Also includes a reference implementation of the data format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%