<p dir="ltr">Got in touch with Sean Eddy and apparently the issue is that hmmer reads the info from the original database file, which is in FASTA format, and then considers it as description. There's no attempt to parse any of that info because of the lack of semantics in FASTA headers.</p>
<p dir="ltr">I'd be in favor of adding a sub parser for this info, although I'm not sure how popular it would be. Making it separate from the main Stockholm parser makes sense for me, this is a special case. What do you think? </p>
<br><div class="gmail_quote"><div dir="ltr">A ter, 5/04/2016, 01:08, Peter Cock <<a href="mailto:p.j.a.cock@googlemail.com">p.j.a.cock@googlemail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Apr 5, 2016 at 8:58 AM, João Rodrigues<br>
<<a href="mailto:j.p.g.l.m.rodrigues@gmail.com" target="_blank">j.p.g.l.m.rodrigues@gmail.com</a>> wrote:<br>
>> > My original question was why does AlignIO ignore "custom" annotations it<br>
>> > doesn't know, while writing (StockholmIO, line 254)?<br>
>><br>
>> <a href="https://github.com/biopython/biopython/blob/master/Bio/AlignIO/StockholmIO.py#L254" rel="noreferrer" target="_blank">https://github.com/biopython/biopython/blob/master/Bio/AlignIO/StockholmIO.py#L254</a><br>
>><br>
>> Because as far as I know only a short list of accepted feature types for<br>
>> the GS lines exist (from PFAM/RFAM). The associated comment about<br>
>> this could have been prefixed with TODO - do you have a strong use<br>
>> case for custom annotations?<br>
><br>
> Not really, just a case where I want to add my own annotations to each<br>
> sequence in an alignment. We could support "custom" annotations directly<br>
> under the keys found in the Stockholm file, instead of trying to map them<br>
> somewhere. That would keep the PFAM/RFAM keys "mappable" but extend the<br>
> format if people want to add extra things. It's a shame such an<br>
> annotation-friendly format can only take "official" annotations..<br>
<br>
Its more I was strongly guided by PFAM as the only major user of the<br>
annotations in the Stockholm format when I wrote the Biopython code.<br>
<br>
Peter<br>
</blockquote></div>