org.biojava.bio.structure.scop
Class ScopFactory
java.lang.Object
org.biojava.bio.structure.scop.ScopFactory
public class ScopFactory
- extends Object
Controls the global ScopDatabase being used.
Defaults to a RemoteScopInstallation
, which is fast for small numbers
of queries. For many queries, a ScopInstallation
instance 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopFactory
public ScopFactory()
getSCOP
public static ScopDatabase getSCOP()
setScopDatabase
public static void setScopDatabase(ScopDatabase s)