public class MmtfActions extends Object
| Constructor and Description |
|---|
MmtfActions() |
| Modifier and Type | Method and Description |
|---|---|
static Structure |
readFromFile(Path filePath)
Get a Structure object from a mmtf file.
|
static Structure |
readFromWeb(String pdbId)
Get a Biojava structure from the mmtf REST service.
|
static void |
writeToFile(Structure structure,
Path path)
Write a Structure object to a file.
|
public static Structure readFromFile(Path filePath) throws IOException
filePath - the mmtf fileIOExceptionpublic static void writeToFile(Structure structure, Path path) throws IOException
structure - the Structure to writepath - the file to writeIOExceptionpublic static Structure readFromWeb(String pdbId) throws IOException
pdbId - the PDB code of the required structureIOExceptionCopyright © 2000–2016 BioJava. All rights reserved.