Package org.biojava.nbio.structure
Class PDBCrystallographicInfo
java.lang.Object
org.biojava.nbio.structure.PDBCrystallographicInfo
- All Implemented Interfaces:
Serializable
A class to hold crystallographic information about a PDB structure.
- Author:
- Peter Rose, duarte_j
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getA()
float
getAlpha()
float
getB()
float
getBeta()
float
getC()
Return the crystal cellfloat
getGamma()
javax.vecmath.Matrix4d[]
Get the NCS operators.Get the SpaceGroupjavax.vecmath.Matrix4d[]
Gets all symmetry transformation operators corresponding to this structure's space group (including the identity, at index 0) expressed in the orthonormal basis.int
getZ()
Deprecated.boolean
Whether this structure is non-standard coordinate frame convention, for which our scale matrix calculation and thus the crystal reconstruction will be incorrect.boolean
Whether this structure has a non-standard space group not supported by Biojava.void
setCrystalCell
(CrystalCell cell) Set the crystal cellvoid
setNcsOperators
(javax.vecmath.Matrix4d[] ncsOperators) Set the NCS operators.void
setNonStandardCoordFrameConvention
(boolean nonStandardCoordFrameConvention) Set the non-standard coordinate frame convention fieldvoid
setNonStandardSg
(boolean nonStandardSg) Set the non-standard space group fieldvoid
setSpaceGroup
(SpaceGroup spaceGroup) Set the SpaceGrouptoString()
-
Constructor Details
-
PDBCrystallographicInfo
public PDBCrystallographicInfo()
-
-
Method Details
-
getA
public float getA()- Returns:
- the unit cell parameter a
-
getB
public float getB()- Returns:
- the unit cell parameter b
-
getC
public float getC()- Returns:
- the unit cell parameter c
-
getAlpha
public float getAlpha()- Returns:
- the unit cell parameter alpha (degrees)
-
getBeta
public float getBeta()- Returns:
- the unit cell parameter beta (degrees)
-
getGamma
public float getGamma()- Returns:
- the unit cell parameter gamma (degrees)
-
getCrystalCell
Return the crystal cell- Returns:
-
setCrystalCell
Set the crystal cell- Parameters:
cell
-
-
getSpaceGroup
Get the SpaceGroup- Returns:
- the spaceGroup
-
setSpaceGroup
Set the SpaceGroup- Parameters:
spaceGroup
-
-
getZ
Deprecated.As of 4.0, useSpaceGroup.getMultiplicity()
andStructure.size()
Return the z, i.e. the multiplicity of the space group times the number of chains in asymmetric unit- Returns:
- 0
-
getTransformationsOrthonormal
public javax.vecmath.Matrix4d[] getTransformationsOrthonormal()Gets all symmetry transformation operators corresponding to this structure's space group (including the identity, at index 0) expressed in the orthonormal basis. Using PDB axes convention (NCODE=1).- Returns:
- an array of size
SpaceGroup.getNumOperators()
-
getNcsOperators
public javax.vecmath.Matrix4d[] getNcsOperators()Get the NCS operators. Some PDB files contain NCS operators necessary to create the full AU. Usually this happens for viral proteins. See http://www.wwpdb.org/documentation/format33/sect8.html#MTRIXn . Note that the "given" operators (iGiven field =1 in PDB format, "given" string in _struct_ncs_oper.code in mmCIF format) are not stored.- Returns:
- the operators or null if no operators present
-
setNcsOperators
public void setNcsOperators(javax.vecmath.Matrix4d[] ncsOperators) Set the NCS operators. Some PDB files contain NCS operators necessary to create the full AU. Usually this happens for viral proteins. See http://www.wwpdb.org/documentation/format33/sect8.html#MTRIXn . Note that the "given" operators (iGiven field =1 in PDB format, "given" string in _struct_ncs_oper.code in mmCIF format) are not stored.- Parameters:
ncsOperators
-
-
isNonStandardSg
public boolean isNonStandardSg()Whether this structure has a non-standard space group not supported by Biojava. If this is truegetSpaceGroup()
will be null.- Since:
- 4.2.5
-
setNonStandardSg
public void setNonStandardSg(boolean nonStandardSg) Set the non-standard space group field- Parameters:
nonStandardSg
-- Since:
- 4.2.5
-
isNonStandardCoordFrameConvention
public boolean isNonStandardCoordFrameConvention()Whether this structure is non-standard coordinate frame convention, for which our scale matrix calculation and thus the crystal reconstruction will be incorrect. There's ~ 200 old structures in the PDB affected by the non-standard frame problem, hopefully they will be remediated in the future. For more info see: https://github.com/eppic-team/owl/issues/4- Since:
- 4.2.5
-
setNonStandardCoordFrameConvention
public void setNonStandardCoordFrameConvention(boolean nonStandardCoordFrameConvention) Set the non-standard coordinate frame convention field- Parameters:
nonStandardCoordFrameConvention
-- Since:
- 4.2.5
-
toString
-
SpaceGroup.getMultiplicity()
andStructure.size()