public class StructureIO
extends java.lang.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 java.util.List<Structure> |
getBiologicalAssemblies(java.lang.String pdbId)
Returns all biological assemblies for the given PDB id,
using multiModel=
|
static java.util.List<Structure> |
getBiologicalAssemblies(java.lang.String pdbId,
boolean multiModel)
Returns all biological assemblies for the given PDB id.
|
static Structure |
getBiologicalAssembly(java.lang.String pdbId)
Returns the first biological assembly that is available for the given PDB id,
using multiModel=
|
static Structure |
getBiologicalAssembly(java.lang.String pdbId,
boolean multiModel)
Returns the first biological assembly that is available for the given PDB id.
|
static Structure |
getBiologicalAssembly(java.lang.String pdbId,
int biolAssemblyNr)
Returns the biological assembly for the given PDB id and bioassembly identifier,
using multiModel=
|
static Structure |
getBiologicalAssembly(java.lang.String pdbId,
int biolAssemblyNr,
boolean multiModel)
Returns the biological assembly for the given PDB id and bioassembly identifier.
|
static Structure |
getStructure(java.lang.String name)
Loads a structure based on a name.
|
static StructureIO.StructureFiletype |
guessFiletype(java.lang.String filename)
Attempts to guess the type of a structure file based on the extension
|
static void |
setAtomCache(AtomCache c) |
static void |
setPdbPath(java.lang.String pathToPDBFiles)
Utility method to set the location where PDB files can be found
|
public static Structure getStructure(java.lang.String name) throws java.io.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 - java.io.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(java.lang.String pdbId, boolean multiModel) throws java.io.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).StructureExceptionjava.io.IOExceptionpublic static Structure getBiologicalAssembly(java.lang.String pdbId) throws java.io.IOException, StructureException
For more documentation on quaternary structures see:
http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies
pdbId - StructureExceptionjava.io.IOExceptionpublic static Structure getBiologicalAssembly(java.lang.String pdbId, int biolAssemblyNr, boolean multiModel) throws java.io.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 itjava.io.IOExceptionpublic static Structure getBiologicalAssembly(java.lang.String pdbId, int biolAssemblyNr) throws java.io.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 itjava.io.IOExceptionpublic static java.util.List<Structure> getBiologicalAssemblies(java.lang.String pdbId, boolean multiModel) throws java.io.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).java.io.IOExceptionStructureExceptionpublic static java.util.List<Structure> getBiologicalAssemblies(java.lang.String pdbId) throws java.io.IOException, StructureException
If only one biological assembly is required use getBiologicalAssembly(String) or getBiologicalAssembly(String, int) instead.
pdbId - java.io.IOExceptionStructureExceptionpublic static void setPdbPath(java.lang.String pathToPDBFiles)
pathToPDBFiles - public static StructureIO.StructureFiletype guessFiletype(java.lang.String filename)
filename - Copyright © 2000-2020 BioJava. All Rights Reserved.