Class MmtfStructureReader
java.lang.Object
org.biojava.nbio.structure.io.mmtf.MmtfStructureReader
- All Implemented Interfaces:
Serializable
,org.rcsb.mmtf.api.StructureAdapterInterface
public class MmtfStructureReader
extends Object
implements org.rcsb.mmtf.api.StructureAdapterInterface, Serializable
A biojava specific structure inflator for MMTF.
Should be ported to biojava code.
- Since:
- 5.0
- Author:
- Anthony Bradley
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the structure.void
initStructure
(int totalNumBonds, int totalNumAtoms, int totalNumGroups, int totalNumChains, int totalNumModels, String modelId) void
setAtomInfo
(String atomName, int serialNumber, char alternativeLocationId, float x, float y, float z, float occupancy, float temperatureFactor, String element, int charge) void
setBioAssemblyTrans
(int bioAssemblyId, int[] inputChainIndices, double[] inputTransform, String name) void
setChainInfo
(String chainId, String chainName, int groupCount) void
setEntityInfo
(int[] chainIndices, String sequence, String description, String type) void
setGroupBond
(int indOne, int indTwo, int bondOrder) void
setGroupInfo
(String groupName, int groupNumber, char insertionCode, String chemCompType, int atomCount, int bondCount, char singleLetterCode, int sequenceIndexId, int secStructType) void
setHeaderInfo
(float rFree, float rWork, float resolution, String title, String depositionDate, String releaseDate, String[] experimentalMethods) void
setInterGroupBond
(int indOne, int indTwo, int bondOrder) void
setModelInfo
(int inputModelNumber, int chainCount) void
setXtalInfo
(String spaceGroupString, float[] unitCell, double[][] ncsOperMatrixList)
-
Constructor Details
-
MmtfStructureReader
public MmtfStructureReader()Instantiates a new bio java structure decoder.
-
-
Method Details
-
getStructure
Gets the structure.- Returns:
- the structure
-
finalizeStructure
- Specified by:
finalizeStructure
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
initStructure
public void initStructure(int totalNumBonds, int totalNumAtoms, int totalNumGroups, int totalNumChains, int totalNumModels, String modelId) - Specified by:
initStructure
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setModelInfo
- Specified by:
setModelInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setChainInfo
- Specified by:
setChainInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setGroupInfo
public void setGroupInfo(String groupName, int groupNumber, char insertionCode, String chemCompType, int atomCount, int bondCount, char singleLetterCode, int sequenceIndexId, int secStructType) - Specified by:
setGroupInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setAtomInfo
public void setAtomInfo(String atomName, int serialNumber, char alternativeLocationId, float x, float y, float z, float occupancy, float temperatureFactor, String element, int charge) - Specified by:
setAtomInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setGroupBond
- Specified by:
setGroupBond
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setInterGroupBond
- Specified by:
setInterGroupBond
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setXtalInfo
- Specified by:
setXtalInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setBioAssemblyTrans
public void setBioAssemblyTrans(int bioAssemblyId, int[] inputChainIndices, double[] inputTransform, String name) - Specified by:
setBioAssemblyTrans
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setEntityInfo
- Specified by:
setEntityInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-
setHeaderInfo
public void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, String releaseDate, String[] experimentalMethods) - Specified by:
setHeaderInfo
in interfaceorg.rcsb.mmtf.api.StructureAdapterInterface
-