Used for sequence feature mapping
authoramwaterhouse <Andrew Waterhouse>
Wed, 26 Oct 2005 14:22:55 +0000 (14:22 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 26 Oct 2005 14:22:55 +0000 (14:22 +0000)
resources/uniprot_mapping.xml [new file with mode: 0755]

diff --git a/resources/uniprot_mapping.xml b/resources/uniprot_mapping.xml
new file mode 100755 (executable)
index 0000000..de1e8f0
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>\r
+<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">\r
+<mapping>\r
+       <class name="jalview.datamodel.UniprotFile">\r
+                 <map-to xml="uniprot"/>               \r
+                 <field name="UniprotEntries" type="jalview.datamodel.UniprotEntry"  collection="vector">\r
+                     <bind-xml name="entry"/>\r
+                </field>               \r
+        </class>\r
+                \r
+        <class name="jalview.datamodel.UniprotEntry">\r
+             <field name="name" type="string"/>\r
+             <field name="accession" type="string"/>\r
+             <field name="UniprotSequence" type="jalview.datamodel.UniprotSequence">\r
+               <bind-xml name="sequence"/> \r
+              </field>\r
+              <field name="features" type="jalview.datamodel.SequenceFeature" collection="vector">\r
+                 <bind-xml name="feature"/>\r
+              </field>\r
+              \r
+        </class>\r
+        \r
+        \r
+        <class name="jalview.datamodel.SequenceFeature">\r
+               <field name="type">\r
+                       <bind-xml name="type" node="attribute"/>\r
+               </field>\r
+               <field name="description">\r
+                        <bind-xml name="description" node="attribute"/>\r
+               </field>\r
+               <field name="status">\r
+                       <bind-xml name="status" node="attribute"/>\r
+               </field>\r
+               <field name="position">\r
+                <bind-xml name="position" node="attribute" location="location/position"/>\r
+                </field>\r
+               <field name="begin">\r
+                <bind-xml name="position" node="attribute" location="location/begin"/>\r
+                </field>\r
+               <field name="end">\r
+                <bind-xml name="position" node="attribute" location="location/end"/>\r
+                </field>\r
+        </class>\r
+       \r
+          <class name="jalview.datamodel.UniprotSequence">\r
+                    <field name="content" type="string">\r
+                       <bind-xml name="sequence" node="text"/>\r
+                    </field>\r
+        </class>\r
+\r
+</mapping>\r