AAConWS further work and test cases
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Fri, 3 Dec 2010 16:12:13 +0000 (16:12 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Fri, 3 Dec 2010 16:12:13 +0000 (16:12 +0000)
git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@3424 e3abac25-378b-4346-85de-24260fe3988d

24 files changed:
.classpath
WEB-INF/lib/aaconservation.jar [deleted file]
binaries/AACon_manual.txt [moved from binaries/manual.txt with 100% similarity]
binaries/aaconservation.jar
datamodel/compbio/data/sequence/Method.java [new file with mode: 0644]
datamodel/compbio/data/sequence/Score.java
datamodel/compbio/data/sequence/SequenceUtil.java
runner/compbio/runner/conservation/AACon.java
testsrc/compbio/runner/conservation/AAConTester.java
testsrc/compbio/ws/client/TestAAConWS.java
webservices/compbio/data/msa/jaxws/Align.java
webservices/compbio/data/msa/jaxws/Analize.java
webservices/compbio/data/msa/jaxws/CustomAlign.java
webservices/compbio/data/msa/jaxws/CustomAnalize.java
webservices/compbio/data/msa/jaxws/GetJobStatusResponse.java
webservices/compbio/data/msa/jaxws/GetLimitResponse.java
webservices/compbio/data/msa/jaxws/GetLimitsResponse.java
webservices/compbio/data/msa/jaxws/GetPresetsResponse.java
webservices/compbio/data/msa/jaxws/GetResultResponse.java
webservices/compbio/data/msa/jaxws/GetRunnerOptionsResponse.java
webservices/compbio/data/msa/jaxws/PresetAlign.java
webservices/compbio/data/msa/jaxws/PresetAnalize.java
webservices/compbio/data/msa/jaxws/PullExecStatisticsResponse.java
webservices/compbio/ws/server/WSUtil.java

index ab5b4be..0ace127 100644 (file)
@@ -10,8 +10,7 @@
        <classpathentry kind="lib" path="testsrc/lib/testng-5.10-jdk15.jar"/>\r
        <classpathentry kind="lib" path="lib/servlet-api.jar"/>\r
        <classpathentry kind="lib" path="WEB-INF/lib/drmaa.jar"/>\r
-       <classpathentry kind="lib" path="WEB-INF/lib/compbio-annotations-1.0.jar"/>\r
        <classpathentry kind="lib" path="WEB-INF/lib/compbio-util-1.3.jar"/>\r
-       <classpathentry kind="lib" path="binaries/aaconservation.jar"/>\r
+       <classpathentry kind="lib" path="WEB-INF/lib/compbio-annotations-1.0.jar"/>\r
        <classpathentry kind="output" path="WEB-INF/classes"/>\r
 </classpath>\r
diff --git a/WEB-INF/lib/aaconservation.jar b/WEB-INF/lib/aaconservation.jar
deleted file mode 100644 (file)
index c41612e..0000000
Binary files a/WEB-INF/lib/aaconservation.jar and /dev/null differ
index c41612e..616bb33 100644 (file)
Binary files a/binaries/aaconservation.jar and b/binaries/aaconservation.jar differ
diff --git a/datamodel/compbio/data/sequence/Method.java b/datamodel/compbio/data/sequence/Method.java
new file mode 100644 (file)
index 0000000..e8764eb
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2010 Agnieszka Golicz & Peter Troshin 
+ * 
+ * Amino Acid Conservation @version: 1.0 
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the Apache License version 2 as published by the
+ * Apache Software Foundation This library is distributed in the hope that it
+ * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache
+ * License for more details. A copy of the license is in apache_license.txt. It
+ * is also available here: http://www.apache.org/licenses/LICENSE-2.0.txt 
+ * Any republication or derived work distributed in source code form must 
+ * include this copyright and license notice.
+ * 
+ */
+package compbio.data.sequence;
+
+/**
+ * Enumeration listing of all the supported methods.
+ * 
+ * @author Agnieszka Golicz & Peter Troshin
+ */
+public enum Method {
+       KABAT, JORES, SCHNEIDER, SHENKIN, GERSTEIN, TAYLOR_GAPS, TAYLOR_NO_GAPS, ZVELIBIL, KARLIN, ARMON, THOMPSON, NOT_LANCET, MIRNY, WILLIAMSON, LANDGRAF, SANDER, VALDAR, SMERFS;
+
+       public static Method getMethod(String meth) {
+               meth = meth.trim().toLowerCase();
+               if (meth.equalsIgnoreCase(KABAT.toString())) {
+                       return KABAT;
+               }
+               if (meth.equalsIgnoreCase(JORES.toString())) {
+                       return JORES;
+               }
+               if (meth.equalsIgnoreCase(SCHNEIDER.toString())) {
+                       return SCHNEIDER;
+               }
+               if (meth.equalsIgnoreCase(SHENKIN.toString())) {
+                       return SHENKIN;
+               }
+               if (meth.equalsIgnoreCase(GERSTEIN.toString())) {
+                       return GERSTEIN;
+               }
+               if (meth.equalsIgnoreCase(TAYLOR_GAPS.toString())) {
+                       return TAYLOR_GAPS;
+               }
+               if (meth.equalsIgnoreCase(TAYLOR_NO_GAPS.toString())) {
+                       return TAYLOR_NO_GAPS;
+               }
+               if (meth.equalsIgnoreCase(ZVELIBIL.toString())) {
+                       return ZVELIBIL;
+               }
+               if (meth.equalsIgnoreCase(KARLIN.toString())) {
+                       return KARLIN;
+               }
+               if (meth.equalsIgnoreCase(ARMON.toString())) {
+                       return ARMON;
+               }
+               if (meth.equalsIgnoreCase(THOMPSON.toString())) {
+                       return THOMPSON;
+               }
+               if (meth.equalsIgnoreCase(NOT_LANCET.toString())) {
+                       return NOT_LANCET;
+               }
+               if (meth.equalsIgnoreCase(MIRNY.toString())) {
+                       return MIRNY;
+               }
+               if (meth.equalsIgnoreCase(WILLIAMSON.toString())) {
+                       return WILLIAMSON;
+               }
+               if (meth.equalsIgnoreCase(LANDGRAF.toString())) {
+                       return LANDGRAF;
+               }
+               if (meth.equalsIgnoreCase(SANDER.toString())) {
+                       return SANDER;
+               }
+               if (meth.equalsIgnoreCase(VALDAR.toString())) {
+                       return VALDAR;
+               }
+               if (meth.equalsIgnoreCase(SMERFS.toString())) {
+                       return SMERFS;
+               }
+               return null;
+       }
+
+}
index 8a58db3..3416e78 100644 (file)
@@ -6,7 +6,6 @@ import java.util.List;
 import javax.xml.bind.annotation.XmlAccessType;\r
 import javax.xml.bind.annotation.XmlAccessorType;\r
 \r
-import compbio.conservation.Method;\r
 import compbio.util.annotation.Immutable;\r
 \r
 @XmlAccessorType(XmlAccessType.FIELD)\r
index c995585..935ce74 100644 (file)
@@ -32,8 +32,6 @@ import java.util.logging.Level;
 import java.util.regex.Matcher;\r
 import java.util.regex.Pattern;\r
 \r
-import compbio.conservation.Method;\r
-\r
 /**\r
  * Utility class for operations on sequences\r
  * \r
index ce4d293..49c87d4 100644 (file)
@@ -53,12 +53,12 @@ public class AACon extends SkeletalExecutable<AACon> {
         */\r
        private int ncoreNumber = 0;\r
 \r
-       private final String ncorePrm = "-n=";\r
+       private final String ncorePrm = "-t=";\r
 \r
        // Cache for Limits information\r
        private static LimitsManager<AACon> limits;\r
 \r
-       public static final String KEY_VALUE_SEPARATOR = Util.SPACE;\r
+       public static final String KEY_VALUE_SEPARATOR = "=";\r
        public static final String STAT_FILE = "stat.txt";\r
 \r
        public AACon() {\r
index da924f0..edf637b 100644 (file)
@@ -37,7 +37,7 @@ import org.ggf.drmaa.JobInfo;
 import org.testng.annotations.BeforeMethod;\r
 import org.testng.annotations.Test;\r
 \r
-import compbio.conservation.Method;\r
+import compbio.data.sequence.Method;\r
 import compbio.data.sequence.MultiAnnotatedSequence;\r
 import compbio.engine.AsyncExecutor;\r
 import compbio.engine.Configurator;\r
index a8814c8..a76b41b 100644 (file)
@@ -8,36 +8,56 @@ import java.io.File;
 import java.io.FileInputStream;\r
 import java.io.FileNotFoundException;\r
 import java.io.IOException;\r
+import java.net.MalformedURLException;\r
 import java.net.URL;\r
+import java.util.ArrayList;\r
 import java.util.HashSet;\r
 import java.util.List;\r
 \r
 import javax.xml.namespace.QName;\r
 import javax.xml.ws.Service;\r
 \r
+import org.testng.annotations.BeforeTest;\r
 import org.testng.annotations.Test;\r
 \r
-import compbio.conservation.Method;\r
 import compbio.data.msa.Annotation;\r
 import compbio.data.sequence.FastaSequence;\r
+import compbio.data.sequence.Method;\r
 import compbio.data.sequence.Score;\r
 import compbio.data.sequence.SequenceUtil;\r
 import compbio.metadata.JobSubmissionException;\r
 import compbio.metadata.LimitExceededException;\r
+import compbio.metadata.PresetManager;\r
 import compbio.metadata.ResultNotAvailableException;\r
+import compbio.metadata.RunnerConfig;\r
 import compbio.metadata.UnsupportedRuntimeException;\r
+import compbio.metadata.WrongParameterException;\r
+import compbio.runner.conservation.AACon;\r
 import compbio.util.SysPrefs;\r
-import compbio.ws.server.AAConWS;\r
 \r
 public class TestAAConWS {\r
 \r
-       @Test\r
-       public void test() throws FileNotFoundException, IOException {\r
+       Annotation<AACon> msaws;\r
 \r
-               URL url = new URL("http://localhost:8080/jabaws/AAConWS?wsdl");\r
+       @BeforeTest\r
+       void initConnection() {\r
+               URL url = null;\r
+               try {\r
+                       url = new URL("http://localhost:8080/jabaws/AAConWS?wsdl");\r
+               } catch (MalformedURLException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getLocalizedMessage());\r
+               }\r
                String namespace = "http://msa.data.compbio/01/12/2010/";\r
                QName qname = new QName(namespace, "AAConWS");\r
                Service serv = Service.create(url, qname);\r
+               msaws = serv.getPort(new QName(namespace, "AAConWSPort"),\r
+                               Annotation.class);\r
+       }\r
+\r
+       @Test\r
+       public void testAnalize() throws FileNotFoundException, IOException {\r
+\r
                /*\r
                 * MsaWS msaws = serv.getPort(new QName(\r
                 * "http://msa.data.compbio/01/01/2010/", "ClustalWSPort"),\r
@@ -46,9 +66,6 @@ public class TestAAConWS {
                // Annotation<AACon> msaws = serv.getPort(new QName(namespace,\r
                // "ClustalWSPort"), Annotation.class);\r
 \r
-               Annotation<AAConWS> msaws = serv.getPort(new QName(namespace,\r
-                               "AAConWSPort"), Annotation.class);\r
-\r
                // List<FastaSequence> fsl = SequenceUtil.readFasta(new FileInputStream(\r
                // AAConTester.test_alignment_input));\r
 \r
@@ -60,8 +77,7 @@ public class TestAAConWS {
                                                + File.separator + "TO1381.fasta.aln"));\r
 \r
                try {\r
-                       System.out.println("Pres: "\r
-                                       + msaws.getPresets().getPresets().get(0));\r
+                       System.out.println("Pres: " + msaws.getPresets().getPresets());\r
                        String jobId = msaws.analize(fsl);\r
                        System.out.println("J: " + jobId);\r
                        HashSet<Score> result = msaws.getConservation(jobId);\r
@@ -72,6 +88,78 @@ public class TestAAConWS {
                        assertNotNull(scores);\r
                        assertEquals(scores.size(), 568);\r
 \r
+                       // Using presets\r
+                       PresetManager<AACon> presets = msaws.getPresets();\r
+                       jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Quick conservation"));\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 13);\r
+\r
+                       jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Slow conservation"));\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 5);\r
+\r
+                       jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Complete conservation"));\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 18);\r
+\r
+               } catch (UnsupportedRuntimeException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (LimitExceededException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (JobSubmissionException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (ResultNotAvailableException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (WrongParameterException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               }\r
+\r
+       }\r
+\r
+       @Test\r
+       public void testPresetAnalize() throws FileNotFoundException, IOException {\r
+\r
+               String CURRENT_DIRECTORY = SysPrefs.getCurrentDirectory()\r
+                               + File.separator;\r
+\r
+               List<FastaSequence> fsl = SequenceUtil.readFasta(new FileInputStream(\r
+                               CURRENT_DIRECTORY + "testsrc" + File.separator + "testdata"\r
+                                               + File.separator + "TO1381.fasta.aln"));\r
+\r
+               try {\r
+                       System.out.println("Pres: " + msaws.getPresets().getPresets());\r
+\r
+                       // Using presets\r
+                       PresetManager<AACon> presets = msaws.getPresets();\r
+                       String jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Quick conservation"));\r
+                       HashSet<Score> result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 13);\r
+\r
+                       jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Slow conservation"));\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 5);\r
+\r
+                       jobId = msaws.presetAnalize(fsl,\r
+                                       presets.getPresetByName("Complete conservation"));\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 18);\r
+\r
                } catch (UnsupportedRuntimeException e) {\r
                        e.printStackTrace();\r
                        fail(e.getMessage());\r
@@ -84,7 +172,63 @@ public class TestAAConWS {
                } catch (ResultNotAvailableException e) {\r
                        e.printStackTrace();\r
                        fail(e.getMessage());\r
+               } catch (WrongParameterException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
                }\r
 \r
        }\r
+\r
+       @Test\r
+       public void testCustomAnalize() throws FileNotFoundException, IOException {\r
+\r
+               String CURRENT_DIRECTORY = SysPrefs.getCurrentDirectory()\r
+                               + File.separator;\r
+\r
+               List<FastaSequence> fsl = SequenceUtil.readFasta(new FileInputStream(\r
+                               CURRENT_DIRECTORY + "testsrc" + File.separator + "testdata"\r
+                                               + File.separator + "TO1381.fasta.aln"));\r
+\r
+               // Using options\r
+               RunnerConfig<AACon> options = msaws.getRunnerOptions();\r
+               // System.out.println(options.getArguments());\r
+\r
+               try {\r
+                       options.getArgument("Calculation method").setDefaultValue("SMERFS");\r
+                       String jobId = msaws.customAnalize(fsl, options.getArguments());\r
+                       HashSet<Score> result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 1);\r
+                       assertEquals(\r
+                                       new ArrayList<Score>(result).get(0).getScores().get(0),\r
+                                       0.698f);\r
+\r
+                       options.getArgument("Calculation method").setDefaultValue("SMERFS");\r
+                       options.removeArgument("Normalize");\r
+                       System.out.println(options);\r
+                       jobId = msaws.customAnalize(fsl, options.getArguments());\r
+                       result = msaws.getConservation(jobId);\r
+                       assertNotNull(result);\r
+                       assertEquals(result.size(), 1);\r
+                       assertEquals(\r
+                                       new ArrayList<Score>(result).get(0).getScores().get(0),\r
+                                       0.401f);\r
+\r
+               } catch (WrongParameterException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (UnsupportedRuntimeException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (LimitExceededException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (JobSubmissionException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               } catch (ResultNotAvailableException e) {\r
+                       e.printStackTrace();\r
+                       fail(e.getMessage());\r
+               }\r
+       }\r
 }\r
index 7f021d3..e380bab 100644 (file)
@@ -7,7 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
 \r
 @XmlRootElement(name = "align", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -15,14 +14,14 @@ import compbio.data.sequence.FastaSequence;
 public class Align {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -31,7 +30,7 @@ public class Align {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
index 7ce56ac..fc7fd26 100644 (file)
@@ -7,7 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
 \r
 @XmlRootElement(name = "analize", namespace = "http://msa.data.compbio/01/12/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -15,14 +14,14 @@ import compbio.data.sequence.FastaSequence;
 public class Analize {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -31,7 +30,7 @@ public class Analize {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
index 92c9bab..d258864 100644 (file)
@@ -7,8 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
-import compbio.metadata.Option;\r
 \r
 @XmlRootElement(name = "customAlign", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -19,16 +17,16 @@ import compbio.metadata.Option;
 public class CustomAlign {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
     @XmlElement(name = "options", namespace = "")\r
-    private List<Option> options;\r
+    private List<compbio.metadata.Option> options;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -37,7 +35,7 @@ public class CustomAlign {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
@@ -46,7 +44,7 @@ public class CustomAlign {
      * @return\r
      *     returns List<Option>\r
      */\r
-    public List<Option> getOptions() {\r
+    public List<compbio.metadata.Option> getOptions() {\r
         return this.options;\r
     }\r
 \r
@@ -55,7 +53,7 @@ public class CustomAlign {
      * @param options\r
      *     the value for the options property\r
      */\r
-    public void setOptions(List<Option> options) {\r
+    public void setOptions(List<compbio.metadata.Option> options) {\r
         this.options = options;\r
     }\r
 \r
index 535d2dc..f21d3f3 100644 (file)
@@ -7,8 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
-import compbio.metadata.Option;\r
 \r
 @XmlRootElement(name = "customAnalize", namespace = "http://msa.data.compbio/01/12/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -19,16 +17,16 @@ import compbio.metadata.Option;
 public class CustomAnalize {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
     @XmlElement(name = "options", namespace = "")\r
-    private List<Option> options;\r
+    private List<compbio.metadata.Option> options;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -37,7 +35,7 @@ public class CustomAnalize {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
@@ -46,7 +44,7 @@ public class CustomAnalize {
      * @return\r
      *     returns List<Option>\r
      */\r
-    public List<Option> getOptions() {\r
+    public List<compbio.metadata.Option> getOptions() {\r
         return this.options;\r
     }\r
 \r
@@ -55,7 +53,7 @@ public class CustomAnalize {
      * @param options\r
      *     the value for the options property\r
      */\r
-    public void setOptions(List<Option> options) {\r
+    public void setOptions(List<compbio.metadata.Option> options) {\r
         this.options = options;\r
     }\r
 \r
index 4db9fd4..0f8ba68 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.JobStatus;\r
 \r
 @XmlRootElement(name = "getJobStatusResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.JobStatus;
 public class GetJobStatusResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private JobStatus _return;\r
+    private compbio.metadata.JobStatus _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns JobStatus\r
      */\r
-    public JobStatus getReturn() {\r
+    public compbio.metadata.JobStatus getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetJobStatusResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(JobStatus _return) {\r
+    public void setReturn(compbio.metadata.JobStatus _return) {\r
         this._return = _return;\r
     }\r
 \r
index 9419923..249e7e4 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.Limit;\r
 \r
 @XmlRootElement(name = "getLimitResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.Limit;
 public class GetLimitResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private Limit _return;\r
+    private compbio.metadata.Limit _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns Limit\r
      */\r
-    public Limit getReturn() {\r
+    public compbio.metadata.Limit getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetLimitResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(Limit _return) {\r
+    public void setReturn(compbio.metadata.Limit _return) {\r
         this._return = _return;\r
     }\r
 \r
index 0f27360..f503c23 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.LimitsManager;\r
 \r
 @XmlRootElement(name = "getLimitsResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.LimitsManager;
 public class GetLimitsResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private LimitsManager _return;\r
+    private compbio.metadata.LimitsManager _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns LimitsManager\r
      */\r
-    public LimitsManager getReturn() {\r
+    public compbio.metadata.LimitsManager getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetLimitsResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(LimitsManager _return) {\r
+    public void setReturn(compbio.metadata.LimitsManager _return) {\r
         this._return = _return;\r
     }\r
 \r
index a776d04..ad2942b 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.PresetManager;\r
 \r
 @XmlRootElement(name = "getPresetsResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.PresetManager;
 public class GetPresetsResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private PresetManager _return;\r
+    private compbio.metadata.PresetManager _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns PresetManager\r
      */\r
-    public PresetManager getReturn() {\r
+    public compbio.metadata.PresetManager getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetPresetsResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(PresetManager _return) {\r
+    public void setReturn(compbio.metadata.PresetManager _return) {\r
         this._return = _return;\r
     }\r
 \r
index 067ffb9..d8596b0 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.Alignment;\r
 \r
 @XmlRootElement(name = "getResultResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.data.sequence.Alignment;
 public class GetResultResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private Alignment _return;\r
+    private compbio.data.sequence.Alignment _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns Alignment\r
      */\r
-    public Alignment getReturn() {\r
+    public compbio.data.sequence.Alignment getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetResultResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(Alignment _return) {\r
+    public void setReturn(compbio.data.sequence.Alignment _return) {\r
         this._return = _return;\r
     }\r
 \r
index 42daa5e..fb467ca 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.RunnerConfig;\r
 \r
 @XmlRootElement(name = "getRunnerOptionsResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.RunnerConfig;
 public class GetRunnerOptionsResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private RunnerConfig _return;\r
+    private compbio.metadata.RunnerConfig _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns RunnerConfig\r
      */\r
-    public RunnerConfig getReturn() {\r
+    public compbio.metadata.RunnerConfig getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class GetRunnerOptionsResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(RunnerConfig _return) {\r
+    public void setReturn(compbio.metadata.RunnerConfig _return) {\r
         this._return = _return;\r
     }\r
 \r
index 70cccf5..bc626a1 100644 (file)
@@ -7,8 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
-import compbio.metadata.Preset;\r
 \r
 @XmlRootElement(name = "presetAlign", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -19,16 +17,16 @@ import compbio.metadata.Preset;
 public class PresetAlign {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
     @XmlElement(name = "preset", namespace = "")\r
-    private Preset preset;\r
+    private compbio.metadata.Preset preset;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -37,7 +35,7 @@ public class PresetAlign {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
@@ -46,7 +44,7 @@ public class PresetAlign {
      * @return\r
      *     returns Preset\r
      */\r
-    public Preset getPreset() {\r
+    public compbio.metadata.Preset getPreset() {\r
         return this.preset;\r
     }\r
 \r
@@ -55,7 +53,7 @@ public class PresetAlign {
      * @param preset\r
      *     the value for the preset property\r
      */\r
-    public void setPreset(Preset preset) {\r
+    public void setPreset(compbio.metadata.Preset preset) {\r
         this.preset = preset;\r
     }\r
 \r
index 8499b50..bb585af 100644 (file)
@@ -7,8 +7,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.data.sequence.FastaSequence;\r
-import compbio.metadata.Preset;\r
 \r
 @XmlRootElement(name = "presetAnalize", namespace = "http://msa.data.compbio/01/12/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -19,16 +17,16 @@ import compbio.metadata.Preset;
 public class PresetAnalize {\r
 \r
     @XmlElement(name = "fastaSequences", namespace = "")\r
-    private List<FastaSequence> fastaSequences;\r
+    private List<compbio.data.sequence.FastaSequence> fastaSequences;\r
     @XmlElement(name = "preset", namespace = "")\r
-    private Preset preset;\r
+    private compbio.metadata.Preset preset;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns List<FastaSequence>\r
      */\r
-    public List<FastaSequence> getFastaSequences() {\r
+    public List<compbio.data.sequence.FastaSequence> getFastaSequences() {\r
         return this.fastaSequences;\r
     }\r
 \r
@@ -37,7 +35,7 @@ public class PresetAnalize {
      * @param fastaSequences\r
      *     the value for the fastaSequences property\r
      */\r
-    public void setFastaSequences(List<FastaSequence> fastaSequences) {\r
+    public void setFastaSequences(List<compbio.data.sequence.FastaSequence> fastaSequences) {\r
         this.fastaSequences = fastaSequences;\r
     }\r
 \r
@@ -46,7 +44,7 @@ public class PresetAnalize {
      * @return\r
      *     returns Preset\r
      */\r
-    public Preset getPreset() {\r
+    public compbio.metadata.Preset getPreset() {\r
         return this.preset;\r
     }\r
 \r
@@ -55,7 +53,7 @@ public class PresetAnalize {
      * @param preset\r
      *     the value for the preset property\r
      */\r
-    public void setPreset(Preset preset) {\r
+    public void setPreset(compbio.metadata.Preset preset) {\r
         this.preset = preset;\r
     }\r
 \r
index 70986ab..068b404 100644 (file)
@@ -6,7 +6,6 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;\r
 import javax.xml.bind.annotation.XmlRootElement;\r
 import javax.xml.bind.annotation.XmlType;\r
-import compbio.metadata.ChunkHolder;\r
 \r
 @XmlRootElement(name = "pullExecStatisticsResponse", namespace = "http://msa.data.compbio/01/01/2010/")\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
@@ -14,14 +13,14 @@ import compbio.metadata.ChunkHolder;
 public class PullExecStatisticsResponse {\r
 \r
     @XmlElement(name = "return", namespace = "")\r
-    private ChunkHolder _return;\r
+    private compbio.metadata.ChunkHolder _return;\r
 \r
     /**\r
      * \r
      * @return\r
      *     returns ChunkHolder\r
      */\r
-    public ChunkHolder getReturn() {\r
+    public compbio.metadata.ChunkHolder getReturn() {\r
         return this._return;\r
     }\r
 \r
@@ -30,7 +29,7 @@ public class PullExecStatisticsResponse {
      * @param _return\r
      *     the value for the _return property\r
      */\r
-    public void setReturn(ChunkHolder _return) {\r
+    public void setReturn(compbio.metadata.ChunkHolder _return) {\r
         this._return = _return;\r
     }\r
 \r
index 62996e5..7e45991 100644 (file)
@@ -21,6 +21,8 @@ import java.security.InvalidParameterException;
 import java.util.ArrayList;\r
 import java.util.List;\r
 \r
+import org.apache.log4j.Logger;\r
+\r
 import compbio.data.sequence.FastaSequence;\r
 import compbio.engine.AsyncExecutor;\r
 import compbio.engine.Configurator;\r
@@ -36,6 +38,8 @@ import compbio.util.Timer;
 \r
 public final class WSUtil {\r
 \r
+       private static Logger log = Logger.getLogger(WSUtil.class);\r
+\r
        public static final void validateJobId(String jobId)\r
                        throws InvalidParameterException {\r
                if (!compbio.engine.client.Util.isValidJobId(jobId)) {\r