Class BioAssemblyTools
java.lang.Object
org.biojava.nbio.structure.quaternary.BioAssemblyTools
- Author:
 - Peter Rose
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]static double[][]getBiologicalMoleculeBounds(Structure asymStructure, List<BiologicalAssemblyTransformation> transformations) static double[]getBiologicalMoleculeCentroid(Structure asymUnit, List<BiologicalAssemblyTransformation> transformations) Returns the centroid of the biological molecule.static doublegetBiologicalMoleculeMaximumExtend(Structure structure, List<BiologicalAssemblyTransformation> transformations) Returns the maximum extend of the biological molecule in the x, y, or z direction.static doublegetMaximumExtend(Structure structure) Returns the maximum extend of the structure in the x, y, or z direction.static StructureDeprecated.static StructuregetReducedStructure(Structure orig) reduce a structure to a single-atom representation (e.g.static booleanisUnaryExpression(String expression) Checks if the passed in expression is a unary operator expression Example: (1,2,3) or (1-60) are unary operator expressions (1-60)(61-88) is a binary operator expression, representing a cartesian product of the two parenthesised listsstatic List<OrderedPair<String>>parseBinaryOperatorExpression(String expression) parseUnaryOperatorExpression(String operatorExpression)  
- 
Constructor Details
- 
BioAssemblyTools
public BioAssemblyTools() 
 - 
 - 
Method Details
- 
isUnaryExpression
Checks if the passed in expression is a unary operator expression Example: (1,2,3) or (1-60) are unary operator expressions (1-60)(61-88) is a binary operator expression, representing a cartesian product of the two parenthesised lists- Parameters:
 expression-- Returns:
 - true if expression is a unary operator expression
 
 - 
parseUnaryOperatorExpression
public static List<String> parseUnaryOperatorExpression(String operatorExpression) throws IllegalArgumentException - Throws:
 IllegalArgumentException
 - 
parseBinaryOperatorExpression
public static List<OrderedPair<String>> parseBinaryOperatorExpression(String expression) throws IllegalArgumentException - Throws:
 IllegalArgumentException
 - 
getBiologicalMoleculeBounds
public static double[][] getBiologicalMoleculeBounds(Structure asymStructure, List<BiologicalAssemblyTransformation> transformations)  - 
getAtomCoordinateBounds
 - 
getMaximumExtend
Returns the maximum extend of the structure in the x, y, or z direction.- Parameters:
 structure-- Returns:
 - maximum extend
 
 - 
getBiologicalMoleculeMaximumExtend
public static double getBiologicalMoleculeMaximumExtend(Structure structure, List<BiologicalAssemblyTransformation> transformations) Returns the maximum extend of the biological molecule in the x, y, or z direction.- Parameters:
 structure-- Returns:
 - maximum extend
 
 - 
getBiologicalMoleculeCentroid
public static double[] getBiologicalMoleculeCentroid(Structure asymUnit, List<BiologicalAssemblyTransformation> transformations) throws IllegalArgumentException Returns the centroid of the biological molecule.- Parameters:
 structure-- Returns:
 - centroid
 - Throws:
 IllegalArgumentException- if structure is null
 - 
getReducedCAStructure
Deprecated.Use the more genericgetReducedStructure(Structure)reduce a structure to a Calpha representation only- Parameters:
 orig-- Returns:
 
 - 
getReducedStructure
reduce a structure to a single-atom representation (e.g. CA atoms- Parameters:
 orig-- Returns:
 - Since:
 - Biojava 4.1.0
 
 
 - 
 
getReducedStructure(Structure)