Package org.biojava.nbio.structure.io
Class SandboxStyleStructureProvider
java.lang.Object
org.biojava.nbio.structure.io.SandboxStyleStructureProvider
- All Implemented Interfaces:
StructureProvider
The "Sandbox" style of organizing files is to have a directory structure like below, i.e. the files are organized into
- directory with two characters, based on the two middle characters of a PDB ID
- directory of PDB ID
- several files that are available for this PDB ID
a1/2a1v/2a1v.cif.gz a1/2a1v/2a1v.dssp.gz a1/2a1v/2a1v.pdb-250.jpg.gz a1/2a1v/2a1v.pdb-500.jpg.gz a1/2a1v/2a1v.pdb-65.jpg.gz a1/2a1v/2a1v.pdb-80.jpg.gz a1/2a1v/2a1v.pdb1-250.jpg.gz a1/2a1v/2a1v.pdb1-500.jpg.gz a1/2a1v/2a1v.pdb1-65.jpg.gz a1/2a1v/2a1v.pdb1-80.jpg.gz a1/2a1v/2a1v.pdb1.gz a1/2a1v/2a1v.stride.gz a1/2a1v/2a1v.xml.gz a1/2a1v/pdb2a1v.ent.gz a1/2a1v/r2a1vsf.ent.gz a1/2a1w/2a1w-deriv.cif.gz a1/2a1w/2a1w-extatom.xml.gz a1/2a1w/2a1w-noatom.xml.gz a1/2a1w/2a1w.cif.gz a1/2a1w/2a1w.dssp.gz a1/2a1w/2a1w.pdb-250.jpg.gz a1/2a1w/2a1w.pdb-500.jpg.gz a1/2a1w/2a1w.pdb-65.jpg.gz a1/2a1w/2a1w.pdb-80.jpg.gz a1/2a1w/2a1w.pdb1-250.jpg.gz a1/2a1w/2a1w.pdb1-500.jpg.gz a1/2a1w/2a1w.pdb1-65.jpg.gz a1/2a1w/2a1w.pdb1-80.jpg.gz a1/2a1w/2a1w.pdb1.gz a1/2a1w/2a1w.pdb2-250.jpg.gz a1/2a1w/2a1w.pdb2-500.jpg.gz a1/2a1w/2a1w.pdb2-65.jpg.gz a1/2a1w/2a1w.pdb2-80.jpg.gz a1/2a1w/2a1w.pdb2.gz a1/2a1w/2a1w.pdb3-250.jpg.gz a1/2a1w/2a1w.pdb3-500.jpg.gz a1/2a1w/2a1w.pdb3-65.jpg.gz a1/2a1w/2a1w.pdb3-80.jpg.gz a1/2a1w/2a1w.pdb3.gz a1/2a1w/2a1w.pdb4-250.jpg.gz a1/2a1w/2a1w.pdb4-500.jpg.gz a1/2a1w/2a1w.pdb4-65.jpg.gz a1/2a1w/2a1w.pdb4-80.jpg.gz a1/2a1w/2a1w.pdb4.gz a1/2a1w/2a1w.pdb5-250.jpg.gz a1/2a1w/2a1w.pdb5-500.jpg.gz a1/2a1w/2a1w.pdb5-65.jpg.gz a1/2a1w/2a1w.pdb5-80.jpg.gz a1/2a1w/2a1w.pdb5.gz a1/2a1w/2a1w.pdb6-250.jpg.gz a1/2a1w/2a1w.pdb6-500.jpg.gz a1/2a1w/2a1w.pdb6-65.jpg.gz a1/2a1w/2a1w.pdb6-80.jpg.gz a1/2a1w/2a1w.pdb6.gz a1/2a1w/2a1w.stride.gz a1/2a1w/2a1w.xml.gz a1/2a1w/pdb2a1w.ent.gz a1/2a1w/r2a1wsf.ent.gz a1/2a1x/2a1x-deriv.cif.gz a1/2a1x/2a1x-extatom.xml.gz a1/2a1x/2a1x-noatom.xml.gz
- Author:
- Andreas Prlic
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all PDB IDs that are available in this installationGet the parameters that should be used for file parsinggetStructureById
(String pdbId) get the structure for a PDB IDvoid
Set the parameters that should be used for file parsingvoid
directory where to find PDB files
-
Field Details
-
fileSeparator
-
-
Constructor Details
-
SandboxStyleStructureProvider
public SandboxStyleStructureProvider()
-
-
Method Details
-
setPath
directory where to find PDB files -
getStructureById
Description copied from interface:StructureProvider
get the structure for a PDB ID- Specified by:
getStructureById
in interfaceStructureProvider
- Returns:
- Throws:
IOException
StructureException
-
setFileParsingParameters
Description copied from interface:StructureProvider
Set the parameters that should be used for file parsing- Specified by:
setFileParsingParameters
in interfaceStructureProvider
- Parameters:
params
- FileParsingParameters
-
getFileParsingParameters
Description copied from interface:StructureProvider
Get the parameters that should be used for file parsing- Specified by:
getFileParsingParameters
in interfaceStructureProvider
- Returns:
- the FileParsingParameters that are configuring the behavior of the parser
-
getAllPDBIDs
Returns a list of all PDB IDs that are available in this installation- Returns:
- a list of PDB IDs
- Throws:
IOException
-