public class BioAssemblyTools extends Object
Constructor and Description |
---|
BioAssemblyTools() |
Modifier and Type | Method and Description |
---|---|
static double[][] |
getAtomCoordinateBounds(Structure s) |
static double[][] |
getBiologicalMoleculeBounds(Structure asymStructure,
List<BiologicalAssemblyTransformation> transformations) |
static double[] |
getBiologicalMoleculeCentroid(Structure asymUnit,
List<BiologicalAssemblyTransformation> transformations)
Returns the centroid of the biological molecule.
|
static double |
getBiologicalMoleculeMaximumExtend(Structure structure,
List<BiologicalAssemblyTransformation> transformations)
Returns the maximum extend of the biological molecule in the x, y, or z direction.
|
static double |
getMaximumExtend(Structure structure)
Returns the maximum extend of the structure in the x, y, or z direction.
|
static Structure |
getReducedStructure(Structure orig)
Reduce a structure to a single-atom representation (e.g.
|
static boolean |
isUnaryExpression(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 lists
|
static List<OrderedPair<String>> |
parseBinaryOperatorExpression(String expression) |
static List<String> |
parseUnaryOperatorExpression(String operatorExpression) |
public BioAssemblyTools()
public static boolean isUnaryExpression(String expression)
expression
- public static List<String> parseUnaryOperatorExpression(String operatorExpression) throws IllegalArgumentException
IllegalArgumentException
public static List<OrderedPair<String>> parseBinaryOperatorExpression(String expression) throws IllegalArgumentException
IllegalArgumentException
public static double[][] getBiologicalMoleculeBounds(Structure asymStructure, List<BiologicalAssemblyTransformation> transformations)
public static double[][] getAtomCoordinateBounds(Structure s)
public static double getMaximumExtend(Structure structure)
structure
- public static double getBiologicalMoleculeMaximumExtend(Structure structure, List<BiologicalAssemblyTransformation> transformations)
structure
- public static double[] getBiologicalMoleculeCentroid(Structure asymUnit, List<BiologicalAssemblyTransformation> transformations) throws IllegalArgumentException
structure
- IllegalArgumentException
- if structure is nullpublic static Structure getReducedStructure(Structure orig)
orig
- Copyright © 2000–2018 BioJava. All rights reserved.