X Tutup
Skip to content

Commit fad6665

Browse files
authored
Add PDB_CACHE_DIR
1 parent 5c582a1 commit fad6665

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

structure/caching.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ you can configure the AtomCache by setting the PDB_DIR system property
3131
-DPDB_DIR=/wherever/you/want/
3232
</pre>
3333

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+
3436
An alternative is to hard-code the path in this way (but setting it as a property is better style)
3537

3638
```java
@@ -78,10 +80,7 @@ The AtomCache not only provides access to PDB, it can also fetch Structure repre
7880
There are quite a number of external database IDs that are supported here. See the
7981
<a href="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.
8082

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.
8584

8685
<!--automatically generated footer-->
8786

0 commit comments

Comments
 (0)
X Tutup