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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScopDatabase
getSCOP()
Get the current default instance for the default versionstatic ScopDatabase
getSCOP
(boolean forceLocalData) static ScopDatabase
requests a particular version of SCOP.static ScopDatabase
Gets an instance of the specified scop version.static void
setScopDatabase
(String version) Set the default scop versionstatic void
setScopDatabase
(String version, boolean forceLocalData) Set the default scop versionstatic void
setScopDatabase
(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_75A
forceLocalData
- 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_75A
forceLocalData
- Whether to use a local installation or a remote installation
-
setScopDatabase
Set the default scop version and instance- Parameters:
scop
-
-