proteinNames as vectors
authoramwaterhouse <Andrew Waterhouse>
Wed, 20 Sep 2006 10:15:34 +0000 (10:15 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 20 Sep 2006 10:15:34 +0000 (10:15 +0000)
resources/uniprot_mapping.xml

index d6961aa..d955dd7 100755 (executable)
@@ -2,7 +2,7 @@
 <mapping>\r
        <class name="jalview.datamodel.UniprotFile">\r
                  <map-to xml="uniprot"/>               \r
-                 <field name="UniprotEntries" type="jalview.datamodel.UniprotEntry"  collection="vector">\r
+                 <field name="UniprotEntries" type="jalview.datamodel.UniprotEntry" collection="vector">\r
                      <bind-xml name="entry"/>\r
                 </field>               \r
         </class>\r
         <class name="jalview.datamodel.UniprotEntry">\r
                <field name="name" type="string" collection="vector"/>\r
                <field name="accession" type="string" collection="vector"/>\r
-               <field name="proteinName" type="string" collection="vector">\r
-                       <bind-xml name="name" location="entry/protein"/>\r
+               <field name="protein" type="jalview.datamodel.UniprotProteinName">\r
+                       <bind-xml name="protein"/>\r
                </field>\r
-               \r
              \r
              <field name="UniprotSequence" type="jalview.datamodel.UniprotSequence">\r
                <bind-xml name="sequence"/> \r
                       \r
         </class>\r
         \r
+        <class name="jalview.datamodel.UniprotProteinName">\r
+               <field name="name" type="string" collection="vector">\r
+                       <bind-xml name="name"/>\r
+               </field>                \r
+        </class>\r
+        \r
         \r
         <class name="jalview.datamodel.SequenceFeature">\r
                <field name="type">\r