2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 import static org.testng.AssertJUnit.assertNotNull;
24 import static org.testng.AssertJUnit.assertTrue;
26 import jalview.datamodel.AlignmentI;
27 import jalview.datamodel.ColumnSelection;
28 import jalview.datamodel.DynamicData;
29 import jalview.datamodel.PDBEntry;
30 import jalview.datamodel.PDBEntry.Type;
31 import jalview.datamodel.SequenceI;
32 import jalview.gui.JvOptionPane;
33 import jalview.io.AnnotationFile.ViewDef;
34 import jalview.structure.StructureSelectionManager;
37 import java.util.Hashtable;
38 import java.util.List;
40 import org.testng.Assert;
41 import org.testng.annotations.BeforeClass;
42 import org.testng.annotations.DataProvider;
43 import org.testng.annotations.Test;
45 public class AnnotationFileIOTest
48 private StructureSelectionManager ssm = null;
50 private AlignmentI al = null;
52 @BeforeClass(alwaysRun = true)
53 public void setUpJvOptionPane()
55 JvOptionPane.setInteractiveMode(false);
56 JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
59 static String TestFiles[][] = {
60 { "Test example annotation import/export", "examples/uniref50.fa",
61 "examples/testdata/example_annot_file.jva" },
62 { "Test multiple combine annotation statements import/export",
63 "examples/uniref50.fa",
64 "examples/testdata/test_combine_annot.jva" },
66 "Test multiple combine annotation statements with sequence_ref import/export",
67 "examples/uniref50.fa", "examples/testdata/uniref50_iupred.jva" },
69 "Test group only annotation file parsing results in parser indicating annotation was parsed",
70 "examples/uniref50.fa", "examples/testdata/test_grpannot.jva" },
71 { "Test hiding/showing of insertions on sequence_ref",
72 "examples/uniref50.fa", "examples/testdata/uniref50_seqref.jva" } };
74 @Test(groups = { "Functional" })
75 public void exampleAnnotationFileIO() throws Exception
77 for (String[] testPair : TestFiles)
79 testAnnotationFileIO(testPair[0], new File(testPair[1]), new File(
84 AlignmentI readAlignmentFile(File f)
86 System.out.println("Reading file: " + f);
87 String ff = f.getPath();
90 FormatAdapter rf = new FormatAdapter();
92 AlignmentI al = rf.readFile(ff, DataSourceType.FILE,
93 new IdentifyFile().identify(ff, DataSourceType.FILE));
95 // make sure dataset is initialised ? not sure about this
96 for (int i = 0; i < al.getSequencesArray().length; ++i)
98 al.getSequenceAt(i).createDatasetSequence();
100 assertNotNull("Couldn't read supplied alignment data.", al);
102 } catch (Exception e)
106 Assert.fail("Couln't read the alignment in file '" + f.toString() + "'");
111 * test alignment data in given file can be imported, exported and reimported
115 * - source datafile (IdentifyFile.identify() should work with it)
117 * - label for IO class used to write and read back in the data from
120 void testAnnotationFileIO(String testname, File f, File annotFile)
122 System.out.println("Test: " + testname + "\nReading annotation file '"
123 + annotFile + "' onto : " + f);
124 String af = annotFile.getPath();
127 AlignmentI al = readAlignmentFile(f);
128 ColumnSelection cs = new ColumnSelection();
132 + "\nAlignment was not annotated - annotation file not imported.",
133 new AnnotationFile().readAnnotationFile(al, cs, af,
134 DataSourceType.FILE));
136 AnnotationFile aff = new AnnotationFile();
137 ViewDef v = aff.new ViewDef(null, al.getHiddenSequences(), cs,
139 String anfileout = new AnnotationFile().printAnnotations(
140 al.getAlignmentAnnotation(), al.getGroups(),
141 al.getProperties(), null, al, v);
145 + "\nAlignment annotation file was not regenerated. Null string",
150 + "\nAlignment annotation file was not regenerated. Empty string",
151 anfileout.length() > "JALVIEW_ANNOTATION".length());
153 System.out.println("Output annotation file:\n" + anfileout
156 AlignmentI al_new = readAlignmentFile(f);
160 + "\nregenerated annotation file did not annotate alignment.",
161 new AnnotationFile().readAnnotationFile(al_new, anfileout,
162 DataSourceType.PASTE));
164 // test for consistency in io
165 StockholmFileTest.testAlignmentEquivalence(al, al_new, false);
167 } catch (Exception e)
173 + "\nCouldn't complete Annotation file roundtrip input/output/input test for '"
178 @BeforeClass(alwaysRun = true)
179 void testProcessStructModel()
184 ssm = StructureSelectionManager.getStructureSelectionManager();
185 } catch (NullPointerException e)
187 ssm = new StructureSelectionManager();
189 File alignmentFile = new File(
190 "examples/testdata/phyre2results/56da5616b4559c93/allhits.fasta");
191 String annotationFile = "examples/testdata/phyre2results/56da5616b4559c93/allhits.ann";
192 ColumnSelection cs = new ColumnSelection();
193 al = readAlignmentFile(alignmentFile);
194 boolean annotationRead = new AnnotationFile().readAnnotationFile(al,
195 cs, annotationFile, DataSourceType.FILE);
196 Assert.assertTrue(annotationRead);
197 System.out.println("bla");
201 groups = { "Functional" },
202 dataProvider = "phyre2ModelPDBEntryDataProvider")
203 void testSequence_PDBEntryAssociation(String[] structModelHeader, String baseDir,
204 String structModelDataStr)
206 String structModelData[] = structModelDataStr.split("\t");
207 String templateSeq = structModelData[1];
208 String pdbId = structModelData[2];
210 SequenceI testSeq = al.findName(templateSeq);
211 Assert.assertNotNull(testSeq);
212 PDBEntry actualPDBEntry = testSeq.getDatasetSequence().getPDBEntry(
214 Assert.assertNotNull(actualPDBEntry);
216 PDBEntry expectedPDBEntry = new PDBEntry(pdbId, " ", Type.PDB, baseDir
218 List<DynamicData> phyreDD = AnnotationFile
219 .generatePhyreDynamicDataList(structModelHeader,
221 expectedPDBEntry.setProperty("DYNAMIC_DATA_PHYRE2", phyreDD);
223 Assert.assertEquals(actualPDBEntry, expectedPDBEntry);
227 groups = { "Functional" },
228 dataProvider = "phyre2ModelMappingDataProvider")
229 void testPhyre2ModelRegistration(String phyre2ModelFile,
230 String expectedPhyre2FastaMappingFile)
233 String actualFastaMappingFile = ssm
234 .getPhyre2FastaFileFor(phyre2ModelFile);
235 Assert.assertNotNull(actualFastaMappingFile);
236 Assert.assertEquals(actualFastaMappingFile,
237 expectedPhyre2FastaMappingFile);
240 @Test(groups = { "Functional" }, dataProvider = "FilePathProvider")
241 void testResolveAbsolutePath(String caseDescription, String suppliedPath,
242 String baseURI, String expectedURI)
244 System.out.println(">>>> Testing Case - " + caseDescription);
245 String actualURI = AnnotationFile.resolveAbsolutePath(suppliedPath,
247 Assert.assertEquals(actualURI, expectedURI);
250 @DataProvider(name = "phyre2ModelPDBEntryDataProvider")
251 public static Object[][] phyre2ModelPDBEntryDataProvider()
253 String[] structModelHeader = new String[] { "QUERY_SEQ",
254 "TEMPLATE_SEQ", "MODEL_FILE", "MAPPING_FILE", "Confidence",
255 "% I.D", "Aligned Range", "Other Information"};
256 String baseDir = "examples/testdata/phyre2results/56da5616b4559c93/";
258 return new Object[][] {
262 "FER_CAPAN_1-144\tc4n58A_\tc4n58A_.1.pdb\tc4n58A_.1.fasta\t1\t54\t48-143\t<b>PDB Header: </b>Hyrolase<br><b>Chain: "
263 + "</b>A<br><b>PDB Molecule: </b>Pectocin m2<br> <b>PDB Title: </b>Crystal structure of pectocin m2 at 1.86 amgtroms" },
267 "FER_CAPAN_1-144\td1a70a_\td1a70a_.2.pdb\td1a70a_.2.fasta\t1\t71\t48-144\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
268 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
272 "FER_CAPAN_1-144\td1offa_\td1offa_.3.pdb\td1offa_.3.fasta\t1\t73\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
273 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
277 "FER_CAPAN_1-144\td1frra_\td1frra_.4.pdb\td1frra_.4.fasta\t0.999\t62\t49-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
278 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
282 "FER_CAPAN_1-144\td1pfda_\td1pfda_.5.pdb\td1pfda_.5.fasta\t0.999\t70\t48-143\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
283 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
287 "FER_CAPAN_1-144\td1frda_\td1frda_.6.pdb\td1frda_.6.fasta\t0.999\t50\t48-143\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
288 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
292 "FER_CAPAN_1-144\td1fxia_\td1fxia_.7.pdb\td1fxia_.7.fasta\t0.999\t62\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
293 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
297 "FER_CAPAN_1-144\td1gaqb_\td1gaqb_.8.pdb\td1gaqb_.8.fasta\t0.999\t71\t48-144\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
298 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
302 "FER_CAPAN_1-144\td1iuea_\td1iuea_.9.pdb\td1iuea_.9.fasta\t0.999\t48\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
303 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
307 "FER_CAPAN_1-144\td1awda_\td1awda_.10.pdb\td1awda_.10.fasta\t0.999\t68\t50-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
308 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
312 "FER_CAPAN_1-144\td1wria_\td1wria_.11.pdb\td1wria_.11.fasta\t0.999\t59\t49-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
313 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
317 "FER_CAPAN_1-144\td1czpa_\td1czpa_.12.pdb\td1czpa_.12.fasta\t0.999\t64\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
318 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
322 "FER_CAPAN_1-144\td2cjoa_\td2cjoa_.13.pdb\td2cjoa_.13.fasta\t0.999\t63\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
323 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
327 "FER_CAPAN_1-144\td4fxca_\td4fxca_.14.pdb\td4fxca_.14.fasta\t0.999\t64\t48-142\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
328 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
332 "FER_CAPAN_1-144\tc4itkA_\tc4itkA_.15.pdb\tc4itkA_.15.fasta\t0.999\t57\t50-142\t<b>PDB Header: </b>Electron transport<br>"
333 + "<b>Chain: </b>A<br><b>PDB Molecule: </b>Apoferredoxin <br><b>PDB Title: </b>The structure of c.reinhardtii ferredoxin 2" },
337 "FER_CAPAN_1-144\tc1krhA_\tc1krhA_.16.pdb\tc1krhA_.16.fasta\t0.999\t25\t48-142\t<b>PDB Header: </b>Oxidoreductase<br><b>Chain: "
338 + "</b>A<br><b>PDB Molecule: </b>Benzoate 1,2-deoxygenase reductase <br> <b>PDB Title: </b>X-ray structure of benzoate "
339 + "deoxygenate reductase" },
343 "FER_CAPAN_1-144\td1krha3\td1krha3.17.pdb\td1krha3.17.fasta\t0.999\t24\t48-143\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
344 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin domains from multi domain proteins" },
348 "FER_CAPAN_1-144\td1jq4a_\td1jq4a_.18.pdb\td1jq4a_.18.fasta\t0.999\t29\t47-138\t<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br>"
349 + "<b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin domains from multi domain proteins" },
353 "FER_CAPAN_1-144\tc4wqmA_\tc4wqmA_.19.pdb\tc4wqmA_.19.fasta\t0.999\t28\t49-144\t<b>PDB header: </b>Oxidoreductase<br><b>Chain: "
354 + "</b>A<br><b>PDB Molecule: </b>Toluene-4-monooxygenase electron transfer component<br><b>PDB Title: </b>Structure of the "
355 + "toluene 4-monooxygenase nah oxidoreductase t4mof,2 k270s k271s variant" },
359 "FER_CAPAN_1-144\tc2piaA_\tc2piaA_.20.pdb\tc2piaA_.20.fasta\t0.999\t22\t1-136\t<b>PDB header: </b>Reductase<br><b>Chain: "
360 + "</b>A<br><b>PDB Molecule: </b>Phthalate deoxygenase reductase<br><b>PDB Title: </b>Phthalate deoxygenate reductase: a"
361 + " modular structure for2 electron transfer from pyridine nucleotides to [2fe-2s]" }
365 @DataProvider(name = "phyre2ModelMappingDataProvider")
366 public static Object[][] phyre2ModelMappingDataProvider()
368 return new Object[][] {
370 { "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.pdb",
371 "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.fasta" },
372 { "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.pdb",
373 "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.fasta" },
374 { "examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.pdb",
375 "examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.fasta" },
376 { "examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.pdb",
377 "examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.fasta" },
378 { "examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.pdb",
379 "examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.fasta" },
380 { "examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.pdb",
381 "examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.fasta" },
383 { "examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.pdb",
384 "examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.fasta" },
386 { "examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.pdb",
387 "examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.fasta" },
388 { "examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.pdb",
389 "examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.fasta" },
391 "examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.pdb",
392 "examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.fasta" },
394 "examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.pdb",
395 "examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.fasta" },
397 "examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.pdb",
398 "examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.fasta" },
400 "examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.pdb",
401 "examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.fasta" },
403 "examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.pdb",
404 "examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.fasta" },
406 "examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.pdb",
407 "examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.fasta" },
409 "examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.16.pdb",
410 "examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.16.fasta" },
412 "examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.pdb",
413 "examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.fasta" },
415 "examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.pdb",
416 "examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.fasta" },
418 "examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.pdb",
419 "examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.fasta" },
421 "examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.pdb",
422 "examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.fasta" }
427 @DataProvider(name = "phyre2InfoHTMLTableDataProvider")
428 public static Object[][] phyre2InfoHTMLTableDataProvider()
430 return new Object[][] {
432 "STRUCTMODEL Annotation with no headear information provided",
434 new String[] { "FER_CAPAN_1-144", "d1a70a_ d1a70a_.2.pdb",
435 "d1a70a_.2.fasta", }, "" },
437 "STRUCTMODEL Annotation with complete compulsary data and headear information provided",
438 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ",
439 "TEMPLATE_SEQ", "MODEL_FILE", "MAPPING_FILE" },
440 new String[] { "FER_CAPAN_1-144", "d1a70a_ d1a70a_.2.pdb",
441 "d1a70a_.2.fasta", },
442 "<html><table border=\"1\" width=100%><tr><td colspan=\"2\"><strong>Phyre2 Template Info</strong></td></tr></table></html>" },
444 "STRUCTMODEL Annotation with complete compulsary data and headear information provided",
445 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ",
446 "TEMPLATE_SEQ", "MODEL_FILE", "MAPPING_FILE", "Confidence",
447 "% I.D", "Aligned Range", "Other Information", "Coverage" },
450 "d1a70a_ d1a70a_.2.pdb",
455 "<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br><b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
456 "<html><table border=\"1\" width=100%><tr><td colspan=\"2\"><strong>Phyre2 Template Info</strong></td></tr><tr><td>MAPPING_FILE</td><td>71</td></tr><tr><td>Confidence</td><td>48-144</td></tr><tr><td>% I.D</td><td><b>Fold: </b>Beta-Grasp (ubiquitin-like)<br><b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related</td></tr></table></html>" } };
459 @DataProvider(name = "StructModelHtmlDataProvider")
460 public static Object[][] IsGenerateStructInfoHtmlDataProvider()
462 return new Object[][] {
463 { "STRUCTMODEL Annotation with no headear or data provided", null,
466 "STRUCTMODEL Annotation with headear information and no data column provided",
467 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ" }, null,
470 "STRUCTMODEL Annotation with no headear information provided",
472 new String[] { "FER_CAPAN_1-144", "d1a70a_ d1a70a_.2.pdb",
473 "d1a70a_.2.fasta", }, false },
475 "STRUCTMODEL Annotation with only two headear information and two data column provided",
476 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ" },
477 new String[] { "FER_CAPAN_1-144", "d1a70a_" }, false },
479 "STRUCTMODEL Annotation with complete compulsary data and headear information provided",
480 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ",
481 "TEMPLATE_SEQ", "MODEL_FILE", "MAPPING_FILE" },
482 new String[] { "FER_CAPAN_1-144", "d1a70a_", "d1a70a_.2.pdb",
483 "d1a70a_.2.fasta", }, true },
485 "STRUCTMODEL Annotation with complete compulsary data and headear information provided",
486 new String[] { "HEADER_STRUCT_MODEL", "QUERY_SEQ",
487 "TEMPLATE_SEQ", "MODEL_FILE", "MAPPING_FILE", "Confidence",
488 "% I.D", "Aligned Range", "Other Information", "Coverage" },
497 "<b>Fold: </b>Beta-Grasp (ubiquitin-like)<br><b>Superfamily: </b>2Fe-2S ferredoxin-like<br><b>Family: </b>2Fe-2S ferredoxin-related" },
501 @DataProvider(name = "FilePathProvider")
502 public static Object[][] filePathProvider()
504 return new Object[][] {
505 { "relative local file path resolution", "c4n58A_.1.pdb", "",
507 { "relative local file path resolution", "c4n58A_.1.pdb",
508 "/examples/testdata/phyre2results/",
509 "/examples/testdata/phyre2results/c4n58A_.1.pdb" },
511 "relative URL path resolution",
513 "http://www.jalview.org/builds/develop/examples/testdata/phyre2results/",
514 "http://www.jalview.org/builds/develop/examples/testdata/phyre2results/c4n58A_.1.pdb" },
516 "Absolute local file path resolution",
517 "/examples/testdata/phyre2results_xx/c4n58A_.1.pdb",
518 "/examples/testdata/phyre2results/",
519 "/examples/testdata/phyre2results_xx/c4n58A_.1.pdb" },
521 "Absolute URL path resolution",
522 "http://www.jalview.org/builds/develop/another_directory/c4n58A_.1.pdb",
523 "http://www.jalview.org/builds/develop/examples/testdata/phyre2results/",
524 "http://www.jalview.org/builds/develop/another_directory/c4n58A_.1.pdb" } };