<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
</div>UniprotFeature is currently only for sequence features annotated in<br>
Uniprot such as active sites, posttranslational modifications etc.<br>
These are parsed by my UniprotConnection class (using the uniprotjapi)<br>
and returned as UniprotFeatures. For Pdb structures associated with a<br>
Uniprot entry, I don&#39;t use the UniprotFeature class, but now thinking<br>
about it, it would also make sense to implement this as a feature.<br>
Instead, I&#39;m using a very simple SiftsConnection class, which parses<br>
SIFTS (either locally or from the ftp site). The thing is that after<br>
taking the data from SIFTS (which gives you start and end residues in<br>
Uniprot and Pdb entry) you still need to do an alignment to get the<br>
actual residue mapping because there may still be gaps and/or<br>
mutations.<br></blockquote><div><br>Ok I didn&#39;t realise that, of course one would need both: uniprot annotation and pdb to uniprot mapping.<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
&gt; - I&#39;m not sure what the fields in the UniprotFeature are. What&#39;s the<br>
&gt; uniprotTypeName and what&#39;s the description?<br>
<br>
</div>As mentioned, UniprotFeature stores sequence annotations as described<br>
in <a href="http://www.uniprot.org/manual/sequence_annotation" target="_blank">http://www.uniprot.org/manual/sequence_annotation</a>.<br>
uniprotTypeName is the category of annotation, e.g. Modified residue<br>
(actually the abbreviation returned by the uniprotjapi, i.e. MOD_RES)<br>
and description is the actual annotation, e.g. Phosphorylation.<br>
<div class="im"><br></div></blockquote><div><br>Cool thanks, I was thinking always in uniprot mapping so that&#39;s why I couldn&#39;t make any sense of this uniprotTypeName.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt; - How do you go about storing the Collection of features belonging to a<br>
&gt; certain structure/sequence. I can see that the HasFeatures interface intends<br>
&gt; to help there. Have you already implemented something with it? That&#39;d be<br>
&gt; nice to have as an example.<br>
<br>
</div>I&#39;m using a class &#39;Gene&#39; which implements HasFeatures. I guess we<br>
could make the classes<br>
Pdb and/or Sequence to implement the HasFeatures interface as examples.<br>
For the moment, I&#39;ll send you my Gene class for reference.<br>
<div class="im"><br>
</div></blockquote></div><br>Yes that&#39;s tricky. The problem is that Pdb or Sequence could have more than one annotation attached to it, for instance Pdb can have uniprot annotation + catalytic sites annotation + structural domains +....... you name it. So how to use all of those together? If I understand it well the implementation of HasFeatures would only be for one type of Feature. Of course Pdb/Sequence could be subclassed case by case or something similar.... At some point we should really look for inspiration in other projects as Dan said :-)<br>
<br>Now I&#39;ve just had new idea. Could one use generics for the HasFeatures interface and then implement several of them, something like HasFeatures&lt;UniprotFeature&gt;, HasFeatures&lt;StructuralDomainFeature&gt; and so on. Can one do that kind of thing?<br>
<br>Alright that&#39;s it for now<br><br>Nice weekend to all!<br><br>Jose<br><br>