Package org.biojava.nbio.structure
Class PDBStatus
java.lang.Object
org.biojava.nbio.structure.PDBStatus
Methods for getting the status of a PDB file (current, removed, unreleased)
and for accessing different versions of the structure.
All methods query the RCSB Data REST API
- Since:
- 3.0.2
- Author:
- Spencer Bliven, Amr ALHOSSARY, Jose Duarte
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents a simplified 3 state status of PDB IDs. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCurrent
(String oldPdbId) Gets the current version of a PDB ID.Returns all current PDB IDsstatic PDBStatus.Status
Get the status of a PDB id.static PDBStatus.Status[]
Get the status of a collection of PDB ids (in a single API query).static void
-
Field Details
-
DEFAULT_RCSB_DATA_API_SERVER
- See Also:
-
ALL_CURRENT_ENDPOINT
- See Also:
-
STATUS_ENDPOINT
- See Also:
-
STATUS_LIST_ENDPOINT
- See Also:
-
-
Constructor Details
-
PDBStatus
public PDBStatus()
-
-
Method Details
-
getStatus
Get the status of a PDB id.- Parameters:
pdbId
- the id- Returns:
- The status.
- Throws:
IOException
-
getStatus
Get the status of a collection of PDB ids (in a single API query).- Parameters:
pdbIds
- the ids- Returns:
- The status array
- Throws:
IOException
- See Also:
-
getCurrent
Gets the current version of a PDB ID.- Parameters:
oldPdbId
- the id- Returns:
- The replacement for oldPdbId, or null if none are found. If entry is current then the input PDB id is returned
- Throws:
IOException
-
getCurrentPDBIds
Returns all current PDB IDs- Returns:
- a list of PDB IDs
- Throws:
IOException
- if a problem occurs retrieving the information
-
main
- Throws:
Exception
-