Final fixing of Jpred problem with casting
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Tue, 17 Sep 2013 14:35:24 +0000 (15:35 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Tue, 17 Sep 2013 14:35:24 +0000 (15:35 +0100)
datamodel/compbio/data/sequence/Alignment.java
webservices/compbio/ws/client/Jws2Client.java
webservices/compbio/ws/server/resource/ClustalWS_schema1.xsd
webservices/compbio/ws/server/resource/JpredWS_schema1.xsd
webservices/compbio/ws/server/resource/MafftWS_schema1.xsd
webservices/compbio/ws/server/resource/MuscleWS_schema1.xsd
webservices/compbio/ws/server/resource/TcoffeeWS_schema1.xsd
wsbuild.log

index 0893082..cf76839 100644 (file)
@@ -22,6 +22,7 @@ import java.util.List;
 \r
 import javax.xml.bind.annotation.XmlAccessType;\r
 import javax.xml.bind.annotation.XmlAccessorType;\r
+import javax.xml.bind.annotation.XmlSeeAlso;\r
 \r
 import compbio.util.annotation.Immutable;\r
 \r
@@ -40,6 +41,7 @@ import compbio.util.annotation.Immutable;
  * @version 1.0 September 2009\r
  * \r
  */\r
+@XmlSeeAlso({JpredAlignment.class})\r
 @XmlAccessorType(XmlAccessType.FIELD)\r
 public class Alignment {\r
 \r
@@ -58,7 +60,7 @@ public class Alignment {
        public Alignment(List<FastaSequence> sequences, Program program,\r
                        char gapchar) {\r
                this.sequences = sequences;\r
-               this.metadata = new AlignmentMetadata(Program.CLUSTAL, gapchar);\r
+               this.metadata = new AlignmentMetadata(program, gapchar);\r
        }\r
 \r
        /**\r
index d46d978..666fa58 100644 (file)
@@ -49,6 +49,7 @@ import compbio.data.msa.MsaWS;
 import compbio.data.msa.RegistryWS;\r
 import compbio.data.msa.SequenceAnnotation;\r
 import compbio.data.sequence.Alignment;\r
+import compbio.data.sequence.AlignmentMetadata;\r
 import compbio.data.sequence.JpredAlignment;\r
 import compbio.data.sequence.FastaSequence;\r
 import compbio.data.sequence.ScoreManager;\r
@@ -186,6 +187,8 @@ public class Jws2Client {
                                        IOHelper.writeOut(writer, alignment);\r
                                        writer.close();\r
                                }\r
+                               AlignmentMetadata md = alignment.getMetadata();\r
+                               System.out.println("Output has been prepared with " + md.getProgram());\r
                        }\r
                }\r
 \r
index 7bd79b9..870ed7f 100644 (file)
     </xs:sequence>
   </xs:complexType>
 
+  <xs:complexType name="jpredAlignment">
+    <xs:complexContent>
+      <xs:extension base="tns:alignment">
+        <xs:sequence/>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+
   <xs:complexType name="ResultNotAvailableException">
     <xs:sequence>
       <xs:element name="message" type="xs:string" minOccurs="0"/>
   <xs:simpleType name="program">
     <xs:restriction base="xs:string">
       <xs:enumeration value="CLUSTAL"/>
-      <xs:enumeration value="MAFFT"/>
-      <xs:enumeration value="MUSCLE"/>
+      <xs:enumeration value="ClustalO"/>
+      <xs:enumeration value="Mafft"/>
+      <xs:enumeration value="Muscle"/>
       <xs:enumeration value="Tcoffee"/>
       <xs:enumeration value="Probcons"/>
       <xs:enumeration value="Jpred"/>
index 3053136..4b7e61a 100644 (file)
     </xs:sequence>
   </xs:complexType>
 
+  <xs:complexType name="jpredAlignment">
+    <xs:complexContent>
+      <xs:extension base="tns:alignment">
+        <xs:sequence/>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+
   <xs:complexType name="ResultNotAvailableException">
     <xs:sequence>
       <xs:element name="message" type="xs:string" minOccurs="0"/>
   <xs:simpleType name="program">
     <xs:restriction base="xs:string">
       <xs:enumeration value="CLUSTAL"/>
-      <xs:enumeration value="MAFFT"/>
-      <xs:enumeration value="MUSCLE"/>
+      <xs:enumeration value="ClustalO"/>
+      <xs:enumeration value="Mafft"/>
+      <xs:enumeration value="Muscle"/>
       <xs:enumeration value="Tcoffee"/>
       <xs:enumeration value="Probcons"/>
       <xs:enumeration value="Jpred"/>
index 7bd79b9..870ed7f 100644 (file)
     </xs:sequence>
   </xs:complexType>
 
+  <xs:complexType name="jpredAlignment">
+    <xs:complexContent>
+      <xs:extension base="tns:alignment">
+        <xs:sequence/>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+
   <xs:complexType name="ResultNotAvailableException">
     <xs:sequence>
       <xs:element name="message" type="xs:string" minOccurs="0"/>
   <xs:simpleType name="program">
     <xs:restriction base="xs:string">
       <xs:enumeration value="CLUSTAL"/>
-      <xs:enumeration value="MAFFT"/>
-      <xs:enumeration value="MUSCLE"/>
+      <xs:enumeration value="ClustalO"/>
+      <xs:enumeration value="Mafft"/>
+      <xs:enumeration value="Muscle"/>
       <xs:enumeration value="Tcoffee"/>
       <xs:enumeration value="Probcons"/>
       <xs:enumeration value="Jpred"/>
index 0cd8da8..4f205ab 100644 (file)
     </xs:sequence>
   </xs:complexType>
 
+  <xs:complexType name="jpredAlignment">
+    <xs:complexContent>
+      <xs:extension base="tns:alignment">
+        <xs:sequence/>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+
   <xs:complexType name="ResultNotAvailableException">
     <xs:sequence>
       <xs:element name="message" type="xs:string" minOccurs="0"/>
   <xs:simpleType name="program">
     <xs:restriction base="xs:string">
       <xs:enumeration value="CLUSTAL"/>
-      <xs:enumeration value="MAFFT"/>
-      <xs:enumeration value="MUSCLE"/>
+      <xs:enumeration value="ClustalO"/>
+      <xs:enumeration value="Mafft"/>
+      <xs:enumeration value="Muscle"/>
       <xs:enumeration value="Tcoffee"/>
       <xs:enumeration value="Probcons"/>
       <xs:enumeration value="Jpred"/>
index de826f8..2095e1a 100644 (file)
     </xs:sequence>
   </xs:complexType>
 
+  <xs:complexType name="jpredAlignment">
+    <xs:complexContent>
+      <xs:extension base="tns:alignment">
+        <xs:sequence/>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+
   <xs:complexType name="ResultNotAvailableException">
     <xs:sequence>
       <xs:element name="message" type="xs:string" minOccurs="0"/>
   <xs:simpleType name="program">
     <xs:restriction base="xs:string">
       <xs:enumeration value="CLUSTAL"/>
-      <xs:enumeration value="MAFFT"/>
-      <xs:enumeration value="MUSCLE"/>
+      <xs:enumeration value="ClustalO"/>
+      <xs:enumeration value="Mafft"/>
+      <xs:enumeration value="Muscle"/>
       <xs:enumeration value="Tcoffee"/>
       <xs:enumeration value="Probcons"/>
       <xs:enumeration value="Jpred"/>
index 466275f..5b45197 100644 (file)
@@ -1333,4 +1333,4 @@ build-server:
     [wsgen] Note:      ap round: 2
 
 BUILD SUCCESSFUL
-Total time: 9 seconds
+Total time: 8 seconds