Repository navigation
Conversation
|
Can we fix the len issue in the current code base? My two top pain points with the current restriction module are that fact is uses 1-based counting (it should be zero based like Python and the rest of Biopython) and creating a named class for every enzyme automatically - which means dir(module) and auto-generated help including help(module) is overly busy. In terms of namespaces perhaps under Bio.SeqUtils might be better? Something for the mailing list I think... |
|
I fixed the |
|
We can't change the 1-based counting or creation of loads of classes in the old Bio.Restriction as it would break any existing scripts using it. This would be best done as a rewrite of the whole restriction digest enyzme code. We could (and perhaps should) fix Regarding holding linear/circular information in the Seq object or a new CircularSeq object this has come up before, but we've never managed to agree a sensible behaviour (particularly for slicing). If you have some thoughts about this I'd also suggest moving this discussion to the biopython-dev mailing list. |
Fix the __len__ issue (that was defined in the wrong metaclass for IPython). Put all type creations in a single function to clean up the global namespace. Remove irrelevant comments about import speed.
|
Sorry for rebasing but there was some bug that got stranded in an earlier commit. |
|
I understand the need for backwards compatibility; that is why I put all my code in a Restriction2 module so that the old Restriction module can stay. |
|
Bundling the REBASE files As I understand it, EMBOSS fetches these files from the ftp://ftp.neb.com/pub/rebase/ via their tool http://emboss.sourceforge.net/apps/release/6.5/emboss/apps/rebaseextract.html with the aim of sidestepping distributing the raw data. From a legal perspective this seems safer (but a bit more complicated). |
|
Superseded by #268. |
An attempt at writing a slightly more sane restriction analysis library. As it is right now, Bio.Restriction is not usable e.g. with IPython because the classes used to define restriction enzymes raise an error when their metaclass' len is called (which IPython's pretty-printer implicitely does), which is a bit crazy in my opinion.
Comments are welcome.