<div dir="ltr"><div>Dear Patrick, Peter, Tiago, and everyone,</div><div><br></div><div>Good to see this discussion being brought up again :) (and thank you Patrick for writing a thorough proposal).</div><div><br></div><div>On the big picture, I wholeheartedly agree that Bioptyhon 2.0 should adopt modern Python best practices, even if it requires a close to full rewrite. The Python scientific computing environment has progressed far beyond the time when Biopython was first written. Many scientific Python libraries are now mature and widely used that at least the thought of interop with them should be considered. This can be done, for example, making our data structures compatible with them (e.g. using numpy arrays) or by making our plotting functions (in Bio.Graphics, for example) compatible with them (e.g. using matplotlib or bokeh).</div><div><br></div><div>I don't have any strong preference for the new namespace (biopy.* or biopython.* is fine). But depending on how we structure the new modules, we may or may not need to share the namespace with the current Bio package, right? If we opt to do modularization ala biogems, only the core module is probably suitable for inclusion in the current Bio package. The rest would have their own repositories.</div><div><br></div><div>I did play around with a distributed package setup (<a href="https://github.com/bow/poc_biopy">https://github.com/bow/poc_biopy</a>). There are two alternatives that I considered there. The first one, `poc_hook` uses an import hook so any non-core `biopy_*` package can be imported as `biopy.ext.*`. The second, `poc_pkgutil` one simply requires any non-core `biopy_*` package put their code inside `biopy.ext`. This was from about 3 years ago, however, so there may be better ways of doing this now.</div><div><br></div><div>But as Peter said, this is probably the one on which a consensus is hardest to build. In addition to that, we would need work to port existing packages to the new structure.</div><div><br></div><div>Now seems like a good time to attempt to do this, though :).</div><div><br></div><div>Cheers,</div><div>Bow</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 19, 2017 at 10:43 PM Peter Cock <<a href="mailto:p.j.a.cock@googlemail.com">p.j.a.cock@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yep - that's what I meant :)<br>
<br>
i.e. "biopython" (or "biopy" or ...") as a folder name meaning we'd<br>
have for example "biopython/sequences/__init__.py`` which can<br>
be import as "from biopython import sequences" etc.<br>
<br>
The NumPy/SciPy like usage pattern for importing had crossed my<br>
mind too - although if we try to minimise the top level automatic<br>
imports I think that is less useful?<br>
<br>
(By that I mean that for example people doing clustering would not<br>
want the overhead of lots of sequence code being imported by default)<br>
<br>
Peter<br>
<br>
On Mon, Jun 19, 2017 at 3:47 PM, Tiago Antão <<a href="mailto:tiagoantao@gmail.com" target="_blank">tiagoantao@gmail.com</a>> wrote:<br>
> Or even<br>
> biopython.*<br>
> and have a recommendation of<br>
> import biopython as bp<br>
> Tiago<br>
><br>
> On 19 June 2017 at 08:45, Peter Cock <<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>> wrote:<br>
>><br>
>> I am generally in agreement with your comments Tiago.<br>
>><br>
>> Note as per my reply to Patrick, we can't use "bio" (lower case)<br>
>> as this would be the same directory on disk as "Bio" (title case) on<br>
>> Windows and most Macs which use a case-insensitive file system.<br>
>> Thus suggestions like "biopy" and "biopython" instead.<br>
>><br>
>> Peter<br>
>><br>
<br>
_______________________________________________<br>
Biopython-dev mailing list<br>
<a href="mailto:Biopython-dev@mailman.open-bio.org" target="_blank">Biopython-dev@mailman.open-bio.org</a><br>
<a href="http://mailman.open-bio.org/mailman/listinfo/biopython-dev" rel="noreferrer" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython-dev</a></blockquote></div>