You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: structure/externaldb.md
+53-6Lines changed: 53 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,57 @@ The Structural Classification of Proteins (SCOP) is a manually curated classific
16
16
* The breakdown of a protein into structural domains
17
17
* A classification of domains according to their structure.
18
18
19
-
Domains are referred to by a 7-letter identifier consisting of the letter 'd', the pdb id of the structure, the chain identifier (or '.' for multichain domains), and a alphanumeric domain identifier (or '_' for single-domain chains). Domains are classified into a heirarchy according to their structural similarity. From least similar to most similar, the levels are:
19
+
The structure for a known SCOP domain can be fetched via its 7-letter domain ID (eg 'd2bq6a1') via ```StructureIO.getStructure()```, as described in [Local PDB Installations](caching.md#Caching of other SCOP, CATH).
20
+
21
+
The SCOP classification can be accessed through the [```ScopDatabase```](http://www.biojava.org/docs/api/org/biojava/bio/structure/scop/ScopDatabase.html) class.
22
+
23
+
ScopDatabase scop = ScopFactory.getSCOP();
24
+
25
+
### Inspecting SCOP domains
26
+
27
+
A list of domains can be retrieved for a given protein.
You can get lots of useful information from the [```ScopDomain```](http://www.biojava.org/docs/api/org/biojava/bio/structure/scop/ScopDomain.html) object.
The full hierarchy is available as a tree of [```ScopNode```](http://www.biojava.org/docs/api/org/biojava/bio/structure/scop/ScopNode.html)s, which can be easily traversed using their ```getParentSunid()``` and ```getChildren()``` methods.
System.out.println("Total nr. of superfamilies:" + superfams.size());
52
+
53
+
### Types of ScopDatabase
54
+
55
+
Several types of ```ScopDatabase``` are available. These can be instantiated manually when more control is needed.
56
+
57
+
*__RemoteScopInstallation__ (default) Fetches data one node at a time from the internet. Useful when perfoming a small number of operations.
58
+
*__ScopeInstallation__ Downloads all SCOP data as a batch and caches it for later use. Much faster when performing many operations.
59
+
60
+
Several internal BioJava classes use ```ScopFactory.getSCOP()``` when they encounter references to SCOP domains, so it is always a good idea to notify the ```ScopFactory``` when using a custom ```ScopDatabase``` instance.
0 commit comments