Commit 6b3bdb0
committed
Honor prefixes for StructureNames
All sources support a prefix to force parsing. For instance, FILE:1abc
will be parsed as a filename, despite looking like a PDB entry.
One possible exception is identifiers of the form file:/absolute/path,
which are interpreted as URLs rather than FILEs (with equivalent results).
However, relative paths and paths containing home directories are not
valid URLs so the source will be set unambiguously as FILE.
This commit also contains some misc bug fixes, identified by a
much more comprehensive test suite:
- getPdbId() returns upper-case results for valid 4-letter identifiers
- clarify order of guessing
- Documentation improvements1 parent 2e35da5 commit 6b3bdb0
7 files changed
Lines changed: 349 additions & 145 deletions
File tree
- biojava-structure/src
- main/java/org/biojava/nbio/structure
- align/client
- test
- java/org/biojava/nbio/structure
- align/client
- resources
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments