[emboss-dev] Mapping EMBOSS to Ruby, Perl and Python
pjotr.public78 at thebird.nl
Mon Nov 30 11:57:17 UTC 2009
For your inspection, I have committed a patch for splitting out the
logic of ./emboss/transeq.c. The patch is here:
The simplified transeq.c is here:
The new interfaces are here:
Basically I have split out the ACD logic and programming logic and
given them new names:
int transeq_acd(int argc, char **argv)
AjPSeqout transeq( AjPSeqall seqall, AjPStr *framelist, AjPStr tablename, AjPRange regions, AjBool trim, AjBool clean, AjBool alternate)
so you can call either from an external program. The advantage being
the call interface is exactly the same, whether from the command
line, the web interface, or directly through a shared linked library.
What do you think? I propose to (slowly) accept splitting out the
other routines in this fashion. As it does not interfere with EMBOSS
it can be done in small steps.
The file emboss/function/emboss_transeq.c may get some extra
interfaces - the idea is that is contains nicely named and direct
methods (unlike the internal 'ajCamelCase' naming conventions). A
useful one would be a simple one reading frame translation with
pre-selected translation table (for speed). But more on that later -
I can also weight-lift that in biolib itself.
The reason I want to do this here is to prevent duplication of
functionality at different levels.
More information about the emboss-dev