Class SymoplibParser


  • public class SymoplibParser
    extends Object
    A class containing static methods to parse the symop.lib file from the CCP4 package. The file contains the transformations belonging to all protein crystallography space groups. See http://structure.usc.edu/ccp4/symlib.html for documentation
    Author:
    duarte_j
    • Method Detail

      • getSpaceGroup

        public static SpaceGroup getSpaceGroup​(int id)
        Gets the space group for the given standard identifier. See for example http://en.wikipedia.org/wiki/Space_group
        Parameters:
        id -
        Returns:
      • getSpaceGroup

        public static SpaceGroup getSpaceGroup​(String shortName)
        Get the space group for the given international short name, using the PDB format, e.g. 'P 21 21 21' or 'C 1 c 1'
        Parameters:
        shortName -
        Returns:
        the SpaceGroup or null if the shortName is not valid
      • parseSymopLib

        public static TreeMap<Integer,​SpaceGroupparseSymopLib​(InputStream symoplibIS)
        A parser for the symop.lib file provided by CCP4. Note: this file is not getting re-distributed by BioJava. It can be downloaded from: http://www.ccp4.ac.uk/cvs/viewvc.cgi/libccp4/data/symop.lib?revision=1.10&view=markup Note: this file is not needed by BioJava. BioJava loads equivalent information from the file spacegroups.xml
        Parameters:
        symoplibIS -
        Returns: