Class AllChemCompProvider
java.lang.Object
org.biojava.nbio.structure.io.mmcif.AllChemCompProvider
- All Implemented Interfaces:
Runnable
,ChemCompProvider
A ChemComp provider that downloads and caches the components.cif file from the wwPDB site. It then loads
all chemical components at startup and keeps them in memory. This provider is not used as a default
since it is slower at startup and requires more memory than the
DownloadChemCompProvider
that is used by default.- Author:
- Andreas Prlic
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Downloads the components.cif.gz file from the wwPDB site.getChemComp
(String recordName) Returns a new instance of a chemical component definition.void
run()
Do the actual loading of the dictionary in a thread.
-
Field Details
-
COMPONENTS_FILE_LOCATION
- See Also:
-
-
Constructor Details
-
AllChemCompProvider
public AllChemCompProvider()
-
-
Method Details
-
downloadFile
Downloads the components.cif.gz file from the wwPDB site.- Throws:
IOException
-
getChemComp
Returns a new instance of a chemical component definition.- Specified by:
getChemComp
in interfaceChemCompProvider
- Parameters:
recordName
- the ID of theChemComp
- Returns:
- a new
ChemComp
definition.
-
run
public void run()Do the actual loading of the dictionary in a thread.
-