public class StructureIO extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StructureIO.StructureFiletype |
| Constructor and Description |
|---|
StructureIO() |
| Modifier and Type | Method and Description |
|---|---|
static AtomCache |
getAtomCache() |
static List<Structure> |
getBiologicalAssemblies(String pdbId)
Returns all biological assemblies for the given PDB id,
using multiModel=
If only one biological assembly is required use
getBiologicalAssembly(String) or getBiologicalAssembly(String, int) instead. |
static List<Structure> |
getBiologicalAssemblies(String pdbId,
boolean multiModel)
Returns all biological assemblies for the given PDB id.
|
static Structure |
getBiologicalAssembly(String pdbId)
Returns the first biological assembly that is available for the given PDB id,
using multiModel=
For more documentation on quaternary structures see:
http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies |
static Structure |
getBiologicalAssembly(String pdbId,
boolean multiModel)
Returns the first biological assembly that is available for the given PDB id.
|
static Structure |
getBiologicalAssembly(String pdbId,
int biolAssemblyNr)
Returns the biological assembly for the given PDB id and bioassembly identifier,
using multiModel=
|
static Structure |
getBiologicalAssembly(String pdbId,
int biolAssemblyNr,
boolean multiModel)
Returns the biological assembly for the given PDB id and bioassembly identifier.
|
static Structure |
getStructure(String name)
Loads a structure based on a name.
|
static StructureIO.StructureFiletype |
guessFiletype(String filename)
Attempts to guess the type of a structure file based on the extension
|
static void |
setAtomCache(AtomCache c) |
static void |
setPdbPath(String pathToPDBFiles)
Utility method to set the location where PDB files can be found
|
public StructureIO()
public static Structure getStructure(String name) throws IOException, StructureException
Formal specification for how to specify the name:
name := pdbID
| pdbID '.' chainID
| pdbID '.' range
| scopID
| biol
| pdp
range := '('? range (',' range)? ')'?
| chainID
| chainID '_' resNum '-' resNum
pdbID := [0-9][a-zA-Z0-9]{3}
chainID := [a-zA-Z0-9]
scopID := 'd' pdbID [a-z_][0-9_]
biol := 'BIO:' pdbID [:]? [0-9]+
pdp := 'PDP:' pdbID[A-Za-z0-9_]+
resNum := [-+]?[0-9]+[A-Za-z]?
Example structures:
1TIM #whole structure - asym unit
4HHB.C #single chain
4GCR.A_1-83 #one domain, by residue number
3AA0.A,B #two chains treated as one structure
d2bq6a1 #scop domain
BIO:1fah #biological assembly nr 1 for 1fah
BIO:1fah:0 #asym unit for 1fah
BIO:1fah:1 #biological assembly nr 1 for 1fah
BIO:1fah:2 #biological assembly nr 2 for 1fah
With the additional set of rules:
#setStrictSCOP(boolean)name - IOException - The PDB file cannot be cached due to IO errorsStructureException - The name appeared valid but did not correspond to a structure.
Also thrown by some submethods upon errors, eg for poorly formatted subranges.public static void setAtomCache(AtomCache c)
public static AtomCache getAtomCache()
public static Structure getBiologicalAssembly(String pdbId, boolean multiModel) throws IOException, StructureException
The output Structure will be different depending on the multiModel parameter:
For more documentation on quaternary structures see:
http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies
pdbId - multiModel - if true the output Structure will be a multi-model one with one transformId per model,
if false the outputStructure will be as the original with added chains with renamed asymIds (in the form originalAsymId_transformId and originalAuthId_transformId).StructureExceptionIOExceptionpublic static Structure getBiologicalAssembly(String pdbId) throws IOException, StructureException
For more documentation on quaternary structures see:
http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies
pdbId - StructureExceptionIOExceptionpublic static Structure getBiologicalAssembly(String pdbId, int biolAssemblyNr, boolean multiModel) throws IOException, StructureException
The output Structure will be different depending on the multiModel parameter:
pdbId - biolAssemblyNr - - the ith biological assembly that is available for a PDB ID (we start counting at 1, 0 represents the asym unit).multiModel - if true the output Structure will be a multi-model one with one transformId per model,
if false the outputStructure will be as the original with added chains with renamed asymIds (in the form originalAsymId_transformId and originalAuthId_transformId).StructureException - if there is no bioassembly available for given biolAssemblyNr or some other problems encountered while loading itIOExceptionpublic static Structure getBiologicalAssembly(String pdbId, int biolAssemblyNr) throws IOException, StructureException
pdbId - biolAssemblyNr - - the ith biological assembly that is available for a PDB ID (we start counting at 1, 0 represents the asym unit).StructureException - if there is no bioassembly available for given biolAssemblyNr or some other problems encountered while loading itIOExceptionpublic static List<Structure> getBiologicalAssemblies(String pdbId, boolean multiModel) throws IOException, StructureException
The output Structure will be different depending on the multiModel parameter:
getBiologicalAssembly(String) or getBiologicalAssembly(String, int) instead.pdbId - multiModel - if true the output Structure will be a multi-model one with one transformId per model,
if false the outputStructure will be as the original with added chains with renamed asymIds (in the form originalAsymId_transformId and originalAuthId_transformId).IOExceptionStructureExceptionpublic static List<Structure> getBiologicalAssemblies(String pdbId) throws IOException, StructureException
If only one biological assembly is required use getBiologicalAssembly(String) or getBiologicalAssembly(String, int) instead.
pdbId - IOExceptionStructureExceptionpublic static void setPdbPath(String pathToPDBFiles)
pathToPDBFiles - public static StructureIO.StructureFiletype guessFiletype(String filename)
filename - Copyright © 2000–2019 BioJava. All rights reserved.