public interface StructureDataInterface
The structural data is accessible through this interface via
a flat structure, instead of the usual hierarchical
data encountered in PDB structures: structure to model to chain to group to atom.
Going back to a hierarchical view of the structure can be achieved by
using the getChainsPerModel()
, getGroupsPerChain()
and
getGroupTypeIndices()
methods so that the flat arrays can be reconstructed into
a hierarchy.
Please refer to the full MMTF specification available at http://mmtf.rcsb.org. Further reference can be found in the mmCIF dictionary.
Modifier and Type | Method and Description |
---|---|
char[] |
getAltLocIds()
Returns an array of location ids of the atoms.
|
int[] |
getAtomIds()
Returns an array of atom serial ids (_atom_site.id in mmCIF dictionary).
|
float[] |
getbFactors()
Returns an array containing the B-factors (temperature factors) of the atoms in Angstroms^2.
|
String |
getBioassemblyName(int bioassemblyIndex)
Returns the name of the transformation for a bioassembly.
|
String[] |
getChainIds()
Returns an array of internal chain identifiers (asym_ids in mmCIF dictionary), of length the
number of chains (polymeric, non-polymeric and water) in the structure.
|
int[] |
getChainIndexListForTransform(int bioassemblyIndex,
int transformationIndex)
Returns the list of chain indices for the given transformation for the given bioassembly.
|
String[] |
getChainNames()
Returns an array of public chain identifiers (auth_ids in mmCIF dictionary), of length the
number of chains (polymeric, non-polymeric and water) in the structure.
|
int[] |
getChainsPerModel()
Returns an array containing the number of chains (polymeric/non-polymeric/water) in each model.
|
String |
getDepositionDate()
Returns the deposition date of the structure as a string
in ISO time standard format.
|
int[] |
getEntityChainIndexList(int entityInd)
Returns the chain indices for the entity specified by the index.
|
String |
getEntityDescription(int entityInd)
Returns the entity description (as defined in mmCIF dictionary)
for the entity specified by the index.
|
String |
getEntitySequence(int entityInd)
Returns the sequence for the entity specified by the index.
|
String |
getEntityType(int entityInd)
Returns the entity type (polymer, non-polymer, water) for the entity specified by the index.
|
String[] |
getExperimentalMethods()
Returns the experimental methods as an array of strings.
|
int[] |
getGroupAtomCharges(int groupInd)
Returns the atom charges for the group specified in
getGroupTypeIndices() . |
String[] |
getGroupAtomNames(int groupInd)
Returns the atom names (e.g.
|
int[] |
getGroupBondIndices(int groupInd)
Returns the zero-based bond indices (in pairs) for the group specified in
getGroupTypeIndices() . |
int[] |
getGroupBondOrders(int groupInd)
Returns the bond orders for the group specified in
getGroupTypeIndices() . |
String |
getGroupChemCompType(int groupInd)
Returns the chemical component type for the group specified in
getGroupTypeIndices() . |
String[] |
getGroupElementNames(int groupInd)
Returns the IUPAC element names (e.g.
|
int[] |
getGroupIds()
Returns an array containing residue numbers (auth_seq_id in mmCIF dictionary) for each residue (group).
|
String |
getGroupName(int groupInd)
Returns the group name for the group specified in
getGroupTypeIndices() . |
int[] |
getGroupSequenceIndices()
Returns an array containing the indices of groups (residues) in their corresponding sequences,
obtainable through
getEntitySequence(int) . |
char |
getGroupSingleLetterCode(int groupInd)
Returns the single letter amino acid code or nucleotide code for the
group specified in
getGroupTypeIndices() . |
int[] |
getGroupsPerChain()
Returns an array containing the number of groups (residues) in each chain.
|
int[] |
getGroupTypeIndices()
Returns an array containing indices to be used to obtain group level information,
e.g.
|
char[] |
getInsCodes()
Returns an array containing the insertion codes (pdbx_PDB_ins_code in mmCIF dictionary) for each residue (group).
|
int[] |
getInterGroupBondIndices()
Returns the zero-based bond indices (in pairs) for the structure.
|
int[] |
getInterGroupBondOrders()
Returns an array of bond orders (1,2,3) of inter-group bonds with length number of inter-group bonds
|
double[] |
getMatrixForTransform(int bioassemblyIndex,
int transformationIndex)
Returns a 4x4 transformation matrix for the given transformation for the given bioassembly.
|
String |
getMmtfProducer()
Returns a string describing the producer of the MMTF file.
|
String |
getMmtfVersion()
Returns the MMTF version number (from the specification).
|
double[][] |
getNcsOperatorList()
Returns the NCS operation matrix list.
|
int |
getNumAtoms()
Returns the number of atoms in the structure.
|
int |
getNumAtomsInGroup(int groupInd)
Returns the number of atoms in the group specified in
getGroupTypeIndices() . |
int |
getNumBioassemblies()
Returns the number of bioassemblies in this structure.
|
int |
getNumBonds()
Returns the total number of bonds in the structure
|
int |
getNumChains()
Returns the number of chains (for all models) in the structure.
|
int |
getNumEntities()
Returns the number of entities (as defined in mmCIF dictionary) in the structure
|
int |
getNumGroups()
Returns the number of groups (residues) in the structure that have
experimentally determined 3D coordinates.
|
int |
getNumModels()
Returns the number of models in the structure.
|
int |
getNumTransInBioassembly(int bioassemblyIndex)
Returns the number of transformations in a given bioassembly.
|
float[] |
getOccupancies()
Returns an array containing the occupancy values of the atoms.
|
String |
getReleaseDate()
Returns the release date of the structure as a string
in ISO time standard format.
|
float |
getResolution()
Returns the resolution of the dataset.
|
float |
getRfree()
Returns the Rfree of the dataset.
|
float |
getRwork()
Returns the Rwork of the dataset.
|
int[] |
getSecStructList()
Returns the secondary structure information for the structure as a list of integers
|
String |
getSpaceGroup()
Returns the space group of the structure.
|
String |
getStructureId()
Returns the identifier of the structure.
|
String |
getTitle()
Returns the title of the structure.
|
float[] |
getUnitCell()
Returns the 6 floats that describe the unit cell.
|
float[] |
getxCoords()
Returns an array containing the X coordinates of the atoms in Angstroms.
|
float[] |
getyCoords()
Returns an array containing the Y coordinates of the atoms in Angstroms.
|
float[] |
getzCoords()
Returns an array containing the Z coordinates of the atoms in Angstroms.
|
float[] getxCoords()
getNumAtoms()
float[] getyCoords()
getNumAtoms()
float[] getzCoords()
getNumAtoms()
float[] getbFactors()
getNumAtoms()
float[] getOccupancies()
getNumAtoms()
int[] getAtomIds()
getNumAtoms()
char[] getAltLocIds()
getNumAtoms()
char[] getInsCodes()
getNumGroups()
getGroupIds()
int[] getGroupIds()
getNumGroups()
getInsCodes()
String getGroupName(int groupInd)
getGroupTypeIndices()
.
to link groups to the 3 letter group name, e.g. HIS.groupInd
- The index of the group specified in getGroupTypeIndices()
.int getNumAtomsInGroup(int groupInd)
getGroupTypeIndices()
.groupInd
- The index of the group specified in getGroupTypeIndices()
.String[] getGroupAtomNames(int groupInd)
getGroupTypeIndices()
.
Atom names are unique for each unique atom in a group.groupInd
- The index of the group specified in getGroupTypeIndices()
.String[] getGroupElementNames(int groupInd)
getGroupTypeIndices()
.groupInd
- the index of the group specified in getGroupTypeIndices()
.int[] getGroupBondOrders(int groupInd)
getGroupTypeIndices()
.
A list of integers indicating the bond ordersgroupInd
- the index of the group specified in getGroupTypeIndices()
.int[] getGroupBondIndices(int groupInd)
getGroupTypeIndices()
.
(e.g. 0,1 means there is bond between atom 0 and 1).groupInd
- the index of the group specified in getGroupTypeIndices()
.int[] getGroupAtomCharges(int groupInd)
getGroupTypeIndices()
.groupInd
- the index of the group specified in getGroupTypeIndices()
.char getGroupSingleLetterCode(int groupInd)
getGroupTypeIndices()
.groupInd
- the index of the group specified in getGroupTypeIndices()
.String getGroupChemCompType(int groupInd)
getGroupTypeIndices()
.groupInd
- The index of the group specified in getGroupTypeIndices()
.int[] getGroupTypeIndices()
getGroupAtomCharges(int)
.getNumGroups()
int[] getGroupSequenceIndices()
getEntitySequence(int)
.
The indices are 0-based and specified per entity, -1 indicates the group is not present in the sequence.getNumGroups()
String[] getChainIds()
getNumChains()
getChainNames()
String[] getChainNames()
getNumChains()
getChainIds()
int[] getChainsPerModel()
getNumModels()
int[] getGroupsPerChain()
getNumChains()
String getSpaceGroup()
float[] getUnitCell()
int getNumBioassemblies()
int getNumTransInBioassembly(int bioassemblyIndex)
bioassemblyIndex
- an integer specifying the bioassembly index (zero indexed).String getBioassemblyName(int bioassemblyIndex)
bioassemblyIndex
- an integer specifying the bioassembly index (zero indexed).int[] getChainIndexListForTransform(int bioassemblyIndex, int transformationIndex)
bioassemblyIndex
- an integer specifying the bioassembly index (zero indexed).transformationIndex
- an integer specifying the index (zero indexed) for the desired transformation.double[] getMatrixForTransform(int bioassemblyIndex, int transformationIndex)
bioassemblyIndex
- an integer specifying the bioassembly index (zero indexed).transformationIndex
- an integer specifying the index for the desired transformation (zero indexed).int[] getInterGroupBondIndices()
int[] getInterGroupBondOrders()
String getMmtfVersion()
String getMmtfProducer()
int getNumEntities()
String getEntityDescription(int entityInd)
entityInd
- the index of the specified entity.String getEntityType(int entityInd)
entityInd
- the index of the specified entity.int[] getEntityChainIndexList(int entityInd)
entityInd
- the index of the specified entity.String getEntitySequence(int entityInd)
entityInd
- the index of the specified entity.String getStructureId()
int getNumModels()
int getNumBonds()
int getNumChains()
getChainsPerModel()
int getNumGroups()
int getNumAtoms()
float getRfree()
float getRwork()
float getResolution()
String getTitle()
String[] getExperimentalMethods()
String getDepositionDate()
String getReleaseDate()
int[] getSecStructList()
double[][] getNcsOperatorList()
Copyright © 2015–2016 RCSB PDB. All rights reserved.