Class BioAssemblyTools


  • public class BioAssemblyTools
    extends Object
    Author:
    Peter Rose
    • Constructor Detail

      • BioAssemblyTools

        public BioAssemblyTools()
    • Method Detail

      • isUnaryExpression

        public 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
        Parameters:
        expression -
        Returns:
        true if expression is a unary operator expression
      • getAtomCoordinateBounds

        public static double[][] getAtomCoordinateBounds​(Structure s)
      • getMaximumExtend

        public static double getMaximumExtend​(Structure structure)
        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
      • getReducedStructure

        public static Structure getReducedStructure​(Structure orig)
        Reduce a structure to a single-atom representation (e.g. CA atoms)
        Parameters:
        orig -
        Returns:
        Since:
        Biojava 4.1.0