Package org.biojava.nbio.structure.xtal
Class SymoplibParser
java.lang.Object
org.biojava.nbio.structure.xtal.SymoplibParser
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeMap<Integer, SpaceGroup> static SpaceGroupgetSpaceGroup(int id) Gets the space group for the given standard identifier.static SpaceGroupgetSpaceGroup(String shortName) Get the space group for the given international short name, using the PDB format, e.g.static TreeMap<Integer, SpaceGroup> parseSpaceGroupsXML(InputStream spaceGroupIS) Load all SpaceGroup information from the file spacegroups.xmlstatic TreeMap<Integer, SpaceGroup> parseSymopLib(InputStream symoplibIS) A parser for the symop.lib file provided by CCP4.
-
Constructor Details
-
SymoplibParser
public SymoplibParser()
-
-
Method Details
-
getSpaceGroup
Gets the space group for the given standard identifier. See for example http://en.wikipedia.org/wiki/Space_group- Parameters:
id-- Returns:
-
parseSpaceGroupsXML
public static TreeMap<Integer,SpaceGroup> parseSpaceGroupsXML(InputStream spaceGroupIS) throws IOException, jakarta.xml.bind.JAXBException Load all SpaceGroup information from the file spacegroups.xml- Returns:
- a map providing information for all spacegroups
- Throws:
IOExceptionjakarta.xml.bind.JAXBException
-
getSpaceGroup
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
-
getAllSpaceGroups
-
parseSymopLib
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=markupNote: this file is not needed by BioJava. BioJava loads equivalent information from the file spacegroups.xml
- Parameters:
symoplibIS-- Returns:
-