File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,29 @@ By default BioJava is using the PDB file format for parsing data. In order to sw
6161
6262As you can see, the AtomCache will again download the missing mmCIF file for 4HHB in the background.
6363
64+ ## URL based parsing of files
65+
66+ StructureIO can also access files via URLs and fetch the data dynamically. E.g. the following code shows how to load a file from a remote server.
67+
68+ ``` java
69+ String u = " http://ftp.wwpdb.org/pub/pdb/data/biounit/mmCIF/divided/nw/4nwr-assembly1.cif.gz" ;
70+ try {
71+ Structure s = StructureIO . getStructure(u);
72+
73+ System . out. println(s);
74+ } catch (Exception e) {
75+ e. printStackTrace();
76+ }
77+ ```
78+
79+ ### Local URLs
80+ BioJava can also access local files, by specifying the URL as
81+
82+ <pre >
83+ file:///path/to/local/file
84+ </pre >
85+
86+
6487## Low Level Access
6588
6689If you want to learn how to use the BioJava mmCIF parser to populate your own data structure, let's first take a look this lower-level code:
You can’t perform that action at this time.
0 commit comments