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 StringLATEST_VERSIONstatic StringVERSION_1_55static StringVERSION_1_57static StringVERSION_1_59static StringVERSION_1_61static StringVERSION_1_63static StringVERSION_1_65static StringVERSION_1_67static StringVERSION_1_69static StringVERSION_1_71static StringVERSION_1_73static StringVERSION_1_75static StringVERSION_1_75Astatic StringVERSION_1_75Bstatic StringVERSION_1_75Cstatic StringVERSION_2_0_1static StringVERSION_2_0_2static StringVERSION_2_0_3static StringVERSION_2_0_4static StringVERSION_2_0_5static StringVERSION_2_0_6static StringVERSION_2_0_7static StringVERSION_2_0_8
-
Constructor Summary
Constructors Constructor Description ScopFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScopDatabasegetSCOP()Get the current default instance for the default versionstatic ScopDatabasegetSCOP(String version)Gets 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 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-
-
-