<div dir="ltr"><div class="gmail_extra">Yes, DNA support, alias files and so on will be added. I'm not sure about indexing, though. That may be a nice option to have, but definitely not default.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 17:17 GMT+08:00 Peter Cock <span dir="ltr"><<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alexey,<br>
<br>
I think this would be a very interesting addition to Bio.SeqIO,<br>
initially a simple iterator for parsing the records one by one<br>
(like a binary FASTA file), but with more work if we can decode<br>
the BLAST lookup files efficient random access via the<br>
Bio.SeqIO.index interface would be great.<br>
<br>
Your code currently only looks at protein databases - have<br>
you tried nucleotide BLAST databases yet? I would expect<br>
the basic structure to be quite similar...<br>
<br>
Also for many uses parsing *.pal (and *.nal) alias files would<br>
be important (e.g. accessing sequencing from the nr/nt<br>
databases).<br>
<br>
Once you have some functional tests, generalising Python 3<br>
code to also run on Python 2.6 and 2.7 is not too hard - and<br>
we would need to do that for inclusion in Biopython. See<br>
the code in SffIO.py for another example which deals with<br>
a binary sequence file format:<br>
<br>
<a href="https://github.com/biopython/biopython/blob/master/Bio/SeqIO/SffIO.py" target="_blank">https://github.com/biopython/biopython/blob/master/Bio/SeqIO/SffIO.py</a><br>
<br>
Peter<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, Mar 10, 2015 at 7:59 AM, Alexey Morozov<br>
<<a href="mailto:alexeymorozov1991@gmail.com">alexeymorozov1991@gmail.com</a>> wrote:<br>
> Dear colleagues,<br>
> I have a pretty crude pure Python3 module that reads binary BLAST databases<br>
> (<a href="https://github.com/SynedraAcus/BinaryBlast" target="_blank">https://github.com/SynedraAcus/BinaryBlast</a>). Is there any chance it'll make<br>
> to main distribuition as SeqIO subclass if I add iterator behaviour and fix<br>
> dirty hacks?<br>
><br>
> --<br>
> Alexey Morozov,<br>
> LIN SB RAS, bioinformatics group.<br>
> Irkutsk, Russia.<br>
><br>
</div></div>> _______________________________________________<br>
> Biopython-dev mailing list<br>
> <a href="mailto:Biopython-dev@mailman.open-bio.org">Biopython-dev@mailman.open-bio.org</a><br>
> <a href="http://mailman.open-bio.org/mailman/listinfo/biopython-dev" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><font face="arial,helvetica,sans-serif">Alexey Morozov,<br>LIN SB RAS, bioinformatics group.<br>Irkutsk, Russia.<br></font></div>
</div></div>