Package org.biojava.nbio.structure.scop
Class ScopFactory
- java.lang.Object
-
- org.biojava.nbio.structure.scop.ScopFactory
-
public class ScopFactory extends Object
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
Fields Modifier and Type Field Description static String
LATEST_VERSION
static String
VERSION_1_55
static String
VERSION_1_57
static String
VERSION_1_59
static String
VERSION_1_61
static String
VERSION_1_63
static String
VERSION_1_65
static String
VERSION_1_67
static String
VERSION_1_69
static String
VERSION_1_71
static String
VERSION_1_73
static String
VERSION_1_75
static String
VERSION_1_75A
static String
VERSION_1_75B
static String
VERSION_1_75C
static String
VERSION_2_0_1
static String
VERSION_2_0_2
static String
VERSION_2_0_3
static String
VERSION_2_0_4
static String
VERSION_2_0_5
static String
VERSION_2_0_6
static String
VERSION_2_0_7
static String
VERSION_2_0_8
-
Constructor Summary
Constructors Constructor Description ScopFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScopDatabase
getSCOP()
Get the current default instance for the default versionstatic ScopDatabase
getSCOP(String version)
Gets an instance of the specified scop version.static void
setScopDatabase(String version)
Set the default scop versionstatic void
setScopDatabase(ScopDatabase scop)
Set the default scop version and instance
-
-
-
Field Detail
-
VERSION_2_0_8
public static final String VERSION_2_0_8
- See Also:
- Constant Field Values
-
VERSION_2_0_7
public static final String VERSION_2_0_7
- See Also:
- Constant Field Values
-
VERSION_2_0_6
public static final String VERSION_2_0_6
- See Also:
- Constant Field Values
-
VERSION_2_0_5
public static final String VERSION_2_0_5
- See Also:
- Constant Field Values
-
VERSION_2_0_4
public static final String VERSION_2_0_4
- See Also:
- Constant Field Values
-
VERSION_2_0_3
public static final String VERSION_2_0_3
- See Also:
- Constant Field Values
-
VERSION_2_0_2
public static final String VERSION_2_0_2
- See Also:
- Constant Field Values
-
VERSION_2_0_1
public static final String VERSION_2_0_1
- See Also:
- Constant Field Values
-
VERSION_1_75C
public static final String VERSION_1_75C
- See Also:
- Constant Field Values
-
VERSION_1_75B
public static final String VERSION_1_75B
- See Also:
- Constant Field Values
-
VERSION_1_75A
public static final String VERSION_1_75A
- See Also:
- Constant Field Values
-
VERSION_1_75
public static final String VERSION_1_75
- See Also:
- Constant Field Values
-
VERSION_1_73
public static final String VERSION_1_73
- See Also:
- Constant Field Values
-
VERSION_1_71
public static final String VERSION_1_71
- See Also:
- Constant Field Values
-
VERSION_1_69
public static final String VERSION_1_69
- See Also:
- Constant Field Values
-
VERSION_1_67
public static final String VERSION_1_67
- See Also:
- Constant Field Values
-
VERSION_1_65
public static final String VERSION_1_65
- See Also:
- Constant Field Values
-
VERSION_1_63
public static final String VERSION_1_63
- See Also:
- Constant Field Values
-
VERSION_1_61
public static final String VERSION_1_61
- See Also:
- Constant Field Values
-
VERSION_1_59
public static final String VERSION_1_59
- See Also:
- Constant Field Values
-
VERSION_1_57
public static final String VERSION_1_57
- See Also:
- Constant Field Values
-
VERSION_1_55
public static final String VERSION_1_55
- See Also:
- Constant Field Values
-
LATEST_VERSION
public static final String LATEST_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScopFactory
public ScopFactory()
-
-
Method Detail
-
getSCOP
public static ScopDatabase getSCOP()
Get the current default instance for the default version- Returns:
-
getSCOP
public static ScopDatabase getSCOP(String version)
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
public static void setScopDatabase(String version)
Set the default scop version- Parameters:
version
- A version number, such asVERSION_1_75A
-
setScopDatabase
public static void setScopDatabase(ScopDatabase scop)
Set the default scop version and instance- Parameters:
scop
-
-
-