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/caching.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ you can configure the AtomCache by setting the PDB_DIR system property
31
31
-DPDB_DIR=/wherever/you/want/
32
32
</pre>
33
33
34
+
BioJava will also check for a `PDB_DIR` environmental variable. If you launch BioJava from the command line, it can be useful to include `export PDB_DIR=/wherever/you/want` in your `.bashrc` file.
35
+
34
36
An alternative is to hard-code the path in this way (but setting it as a property is better style)
35
37
36
38
```java
@@ -78,10 +80,7 @@ The AtomCache not only provides access to PDB, it can also fetch Structure repre
78
80
There are quite a number of external database IDs that are supported here. See the
79
81
<ahref="http://www.biojava.org/docs/api/org/biojava/nbio/structure/align/util/AtomCache.html#getStructure(java.lang.String)">AtomCache documentation</a> for more details on the supported options.
80
82
81
-
82
-
83
-
84
-
83
+
The non-PDB files can be cached at a different location by setting the `PDB_CACHE_DIR` property (with `java -DPDB_CACHE_DIR=...`) or environmental variable.
0 commit comments