Package org.biojava.nbio.structure.scop
Class ScopFactory
java.lang.Object
org.biojava.nbio.structure.scop.ScopFactory
Controls the global ScopDatabase being used.
 
Defaults to a RemoteScopInstallation, which is fast for small numbers
 of queries. For many queries, using getSCOP(version,true)
 may be faster, since it makes only one network request.
 
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 String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ScopDatabasegetSCOP()Get the current default instance for the default versionstatic ScopDatabasegetSCOP(boolean forceLocalData) static ScopDatabaserequests a particular version of SCOP.static ScopDatabaseGets an instance of the specified scop version.static voidsetScopDatabase(String version) Set the default scop versionstatic voidsetScopDatabase(String version, boolean forceLocalData) Set the default scop versionstatic voidsetScopDatabase(ScopDatabase scop) Set the default scop version and instance 
- 
Field Details
- 
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
- Parameters:
 forceLocalData- Whether to use a local installation or a remote installation- Returns:
 - See Also:
 
 - 
getSCOP
requests a particular version of SCOP. Where possible, this will be the current default instance. Otherwise a new instance will be created.- Parameters:
 version-- Returns:
 
 - 
getSCOP
Gets an instance of the specified scop version.The particular implementation returned is influenced by the forceLocalData parameter. When false, the instance returned will generally be a
RemoteScopInstallation, although this may be influenced by previous calls to this class. When true, the result is guaranteed to implementLocalScopDatabase(generally aBerkeleyScopInstallation).Note that
- Parameters:
 version- A version number, such asVERSION_1_75AforceLocalData- Whether to use a local installation or a remote installation- Returns:
 - an
 
 - 
setScopDatabase
Set the default scop version- Parameters:
 version- A version number, such asVERSION_1_75A
 - 
setScopDatabase
Set the default scop version- Parameters:
 version- A version number, such asVERSION_1_75AforceLocalData- Whether to use a local installation or a remote installation
 - 
setScopDatabase
Set the default scop version and instance- Parameters:
 scop-
 
 -