\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
* @version 1.0 September 2009\r
* \r
*/\r
+@XmlSeeAlso({JpredAlignment.class})\r
@XmlAccessorType(XmlAccessType.FIELD)\r
public class Alignment {\r
\r
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
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
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
</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"/>
</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"/>
</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"/>
</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"/>
</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"/>
[wsgen] Note: ap round: 2
BUILD SUCCESSFUL
-Total time: 9 seconds
+Total time: 8 seconds