Package org.biojava.nbio.structure.scop
Class ScopFactory
java.lang.Object
org.biojava.nbio.structure.scop.ScopFactory
Controls the global ScopDatabase being used.
Example: Fetch the structure corresponding to an old version of scop
ScopInstallation scop = new ScopInstallation();
scop.setScopVersion("1.69");
ScopFactory.setScopDatabase(scop);
AtomCache cache = new AtomCache();
cache.setFetchFileEvenIfObsolete(true); //fetch older PDBs
cache.setStrictSCOP(false); // correct simple errors in domain names
Structure s = cache.getStructure("d3hbia_");
- Author:
- sbliven
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopDatabasegetSCOP()Get the current default instance for the default versionstatic ScopDatabaseGets an instance of the specified scop version.static voidsetScopDatabase(String version) Set the default scop versionstatic voidsetScopDatabase(ScopDatabase scop) Set the default scop version and instance
-
Field Details
-
VERSION_2_0_8
- See Also:
-
VERSION_2_0_7
- See Also:
-
VERSION_2_0_6
- See Also:
-
VERSION_2_0_5
- See Also:
-
VERSION_2_0_4
- See Also:
-
VERSION_2_0_3
- See Also:
-
VERSION_2_0_2
- See Also:
-
VERSION_2_0_1
- See Also:
-
VERSION_1_75C
- See Also:
-
VERSION_1_75B
- See Also:
-
VERSION_1_75A
- See Also:
-
VERSION_1_75
- See Also:
-
VERSION_1_73
- See Also:
-
VERSION_1_71
- See Also:
-
VERSION_1_69
- See Also:
-
VERSION_1_67
- See Also:
-
VERSION_1_65
- See Also:
-
VERSION_1_63
- See Also:
-
VERSION_1_61
- See Also:
-
VERSION_1_59
- See Also:
-
VERSION_1_57
- See Also:
-
VERSION_1_55
- See Also:
-
LATEST_VERSION
- See Also:
-
-
Constructor Details
-
ScopFactory
public ScopFactory()
-
-
Method Details
-
getSCOP
Get the current default instance for the default version- Returns:
-
getSCOP
Gets an instance of the specified scop version.The particular implementation returned is guaranteed to implement
LocalScopDatabase(generally aBerkeleyScopInstallation).- Parameters:
version- A version number, such asVERSION_1_75A- Returns:
- an
-
setScopDatabase
Set the default scop version- Parameters:
version- A version number, such asVERSION_1_75A
-
setScopDatabase
Set the default scop version and instance- Parameters:
scop-
-