From: tcofoegbu Date: Tue, 28 Feb 2017 12:49:20 +0000 (+0000) Subject: JAL-2136 added improvement to parse crudelist file instead of scrapping 'summary... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e95ce7b42f95c193fc6ef5b6efb803d13dbac8b9;p=jalview.git JAL-2136 added improvement to parse crudelist file instead of scrapping 'summary.html' and renamed testfiles accordingly --- diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.1.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.1.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.1.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.1.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.scop b/examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.16.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/c1krhA_.16.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.scop b/examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/c2piaA_.20.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.scop b/examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/c4itkA_.15.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.scop b/examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.scop b/examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/c4wqmA_.19.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.2.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1awda_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1awda_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1awda_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1awda_.10.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1czpa_.12.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frda_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frda_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frda_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1frda_.6.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frra_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frra_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1frra_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1frra_.4.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1fxia_.7.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1gaqb_.8.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1iuea_.9.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1jq4a_.18.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1krha3.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1krha3.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1krha3.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1krha3.17.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1offa_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1offa_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1offa_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1offa_.3.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1pfda_.5.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1wria_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1wria_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d1wria_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d1wria_.11.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d2cjoa_.13.scop diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.fasta b/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.fasta similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.fasta rename to examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.fasta diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.pdb b/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.pdb similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.pdb rename to examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.pdb diff --git a/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.scop b/examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.scop similarity index 100% rename from examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.scop rename to examples/testdata/phyre2results/56da5616b4559c93/d4fxca_.14.scop diff --git a/src/jalview/gui/AppJmol.java b/src/jalview/gui/AppJmol.java index 5f18aea..bdd8c4b 100644 --- a/src/jalview/gui/AppJmol.java +++ b/src/jalview/gui/AppJmol.java @@ -66,7 +66,6 @@ import javax.swing.JCheckBoxMenuItem; import javax.swing.JColorChooser; import javax.swing.JInternalFrame; import javax.swing.JMenu; -import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSplitPane; import javax.swing.SwingUtilities; @@ -164,7 +163,7 @@ public class AppJmol extends StructureViewerBase closeViewer(false); } }); - initJmol(loadStatus); // pdbentry, seq, JBPCHECK! + initJmol(loadStatus); // pdbentry, seq, JBPCHECK!ˇ } diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index bff6d6f..cad168f 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -908,8 +908,7 @@ public class StructureChooser extends GStructureChooser implements { String templateId = getPhyreResultTable().getValueAt(row, templateColIndex).toString(); - String structureFile = phyre2ResultDirectory + templateId - + ".pdb"; + String structureFile = phyre2ResultDirectory + templateId; pdbEntriesToView[count++] = new AssociateStructureFileWithSeq() .associateStructureWithSeq(structureFile, DataSourceType.FILE, selectedSequence, true, @@ -964,11 +963,16 @@ public class StructureChooser extends GStructureChooser implements // for getting the result directory when the job completes, this is // currently hard-wired to the directory of result for FER_CAPAN/1-144 phyre2ResultDirectory = "examples/testdata/phyre2results/56da5616b4559c93/"; - String summaryhtml = phyre2ResultDirectory + "summary.html"; - // TODO ditch HTML parsing once appropriated data file (i.e. JSON) for - // Phyre2 result summary is made available + // String summaryhtml = phyre2ResultDirectory + "summary.html"; + // // TODO ditch HTML parsing once appropriated data file (i.e. JSON) for + // // Phyre2 result summary is made available + // List phyreResults = Phyre2Client + // .parsePhyre2ResultSummaryTable(summaryhtml); + + String crudeListFile = phyre2ResultDirectory + "crudelist"; List phyreResults = Phyre2Client - .parsePhyre2ResultSummaryTable(summaryhtml); + .parsePhyreCrudeList(crudeListFile); + getPhyreResultTable() .setModel(Phyre2Client.getTableModel(phyreResults)); Phyre2Client.configurePhyreResultTable(getPhyreResultTable()); diff --git a/src/jalview/jbgui/GStructureChooser.java b/src/jalview/jbgui/GStructureChooser.java index 5a185f8..e4e73d1 100644 --- a/src/jalview/jbgui/GStructureChooser.java +++ b/src/jalview/jbgui/GStructureChooser.java @@ -654,13 +654,9 @@ public abstract class GStructureChooser extends JPanel implements protected void closeAction(int preferredHeight) { - // System.out.println(">>>>>>>>>> closing internal frame!!!"); - // System.out.println("width : " + mainFrame.getWidth()); - // System.out.println("heigh : " + mainFrame.getHeight()); - // System.out.println("x : " + mainFrame.getX()); - // System.out.println("y : " + mainFrame.getY()); tempUserPrefs.put("structureChooser.width", pnl_filter.getWidth()); - tempUserPrefs.put("structureChooser.height", preferredHeight); + tempUserPrefs.put("structureChooser.height", + pnl_filter.getHeight() - 76); tempUserPrefs.put("structureChooser.x", mainFrame.getX()); tempUserPrefs.put("structureChooser.y", mainFrame.getY()); mainFrame.dispose(); diff --git a/src/jalview/ws/phyre2/Phyre2Client.java b/src/jalview/ws/phyre2/Phyre2Client.java index 0a29412..e980a19 100644 --- a/src/jalview/ws/phyre2/Phyre2Client.java +++ b/src/jalview/ws/phyre2/Phyre2Client.java @@ -14,7 +14,9 @@ import jalview.structures.models.MappingOutputModel; import jalview.util.Comparison; import jalview.util.Format; +import java.io.BufferedReader; import java.io.File; +import java.io.FileReader; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; @@ -24,11 +26,6 @@ import java.util.List; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; -import org.jsoup.Jsoup; -import org.jsoup.nodes.Document; -import org.jsoup.nodes.Element; -import org.jsoup.select.Elements; - public class Phyre2Client extends StructureMappingClient { private final static String NEWLINE = System.lineSeparator(); @@ -293,73 +290,30 @@ public class Phyre2Client extends StructureMappingClient } - - public static List parsePhyre2ResultSummaryTable( - String html) + public static List parsePhyreCrudeList(String crudeList) { List phyre2Results = new ArrayList(); - try + try (BufferedReader br = new BufferedReader(new FileReader(crudeList))) { - File in = new File(html); - Document doc = Jsoup.parse(in, null); - // Document doc = Jsoup.connect(html).get(); - Elements tableElements = doc.select("table.midshade"); - for (Element table : tableElements) + String line; + while ((line = br.readLine()) != null) { - System.out.println(); - Elements tableRowElements = table.select(":not(thead) tr"); - for (int i = 0; i < tableRowElements.size(); i++) - { - Element row = tableRowElements.get(i); - Elements rowItems = row.select("td"); - if (rowItems.size() > 11) - { - // for (int j = 0; j < rowItems.size(); j++) - // { - // System.out.println(">>> r:" + j + " = " - // + rowItems.get(j).text()); - // } - - String c = rowItems.get(6).select("input").attr("onmouseover"); - String alignedRange = c.substring(c.indexOf("Residues ") + 9, - c.indexOf(" of your sequence aligned ")); - String coverage = c.substring(c.lastIndexOf(" (") + 2, - c.lastIndexOf(" coverage). Click to view detailed")); - // System.out.println("coverage" + coverage); - try - { - Phyre2SummaryPojo psp = new Phyre2SummaryPojo(); - String sn = rowItems.get(0).text(); - psp.setSerialNo(Integer.valueOf(sn)); - psp.setTemplateId(rowItems.get(1).text()); - psp.setCoverage(coverage); - psp.setAlignedRange(alignedRange); - psp.setConfidence(Double.valueOf(rowItems.get(8).text())); - psp.setPid(Integer.valueOf(rowItems.get(9).text())); - psp.setTemplateSummary(rowItems.get(10).text()); - // System.out.println("row >>>> " + psp.toString()); - // System.out.println(); - phyre2Results.add(psp); - } catch (NumberFormatException e) - { - e.printStackTrace(); - } catch (IndexOutOfBoundsException e) - { - e.printStackTrace(); - } catch (Exception e) - { - e.printStackTrace(); - } - } - } + String[] lineData = line.split(" "); + Phyre2SummaryPojo psp = new Phyre2SummaryPojo(); + psp.setSerialNo(Integer.valueOf(lineData[0])); + psp.setTemplateId(lineData[1]); + psp.setConfidence(100 * Double.valueOf(lineData[2])); + psp.setPid(Integer.valueOf(lineData[3])); + psp.setAlignedRange(lineData[4] + " - " + lineData[5]); + // psp.setCoverage(coverage); + // psp.setTemplateSummary(templateSummary); + phyre2Results.add(psp); } - return phyre2Results; - } catch (Exception e) { e.printStackTrace(); - return null; } + return phyre2Results; } public static DefaultTableModel getTableModel( @@ -436,8 +390,8 @@ public class Phyre2Client extends StructureMappingClient phyreResultTable.getColumn("#").setCellRenderer(idCellRender); phyreResultTable.getColumn("Template").setMinWidth(60); - phyreResultTable.getColumn("Template").setPreferredWidth(60); - phyreResultTable.getColumn("Template").setMaxWidth(90); + phyreResultTable.getColumn("Template").setPreferredWidth(90); + phyreResultTable.getColumn("Template").setMaxWidth(150); phyreResultTable.getColumn("Aligned Range").setMinWidth(80); phyreResultTable.getColumn("Aligned Range").setPreferredWidth(80); diff --git a/test/jalview/ws/phyre2/Phyre2ClientTest.java b/test/jalview/ws/phyre2/Phyre2ClientTest.java index 322bfa3..811ddd0 100644 --- a/test/jalview/ws/phyre2/Phyre2ClientTest.java +++ b/test/jalview/ws/phyre2/Phyre2ClientTest.java @@ -393,10 +393,5 @@ public class Phyre2ClientTest } } - @Test(groups = { "Functional" }) - public void readPhyre2SummaryTableTest() - { - String summaryhtml = "examples/testdata/phyre2results/56da5616b4559c93/summary.html"; - Phyre2Client.parsePhyre2ResultSummaryTable(summaryhtml); - } + }