[Biopython-dev] Properties in Bio.Application interface?

Peter biopython at maubp.freeserve.co.uk
Wed Apr 29 06:25:17 EDT 2009


On Sun, Apr 26, 2009 at 1:46 PM, Peter <biopython at maubp.freeserve.co.uk> wrote:
>
> I have cleaning up the existing Bio.Application command line objects
> in CVS to follow the parameter alias convention already laid out in
> Bio.Application.  i.e. They all now have human readable paramater
> aliases, which are also valid python identifiers.  This means these
> "human readable names" can also be used for argument names in
> __init__ (using **kwargs), or as property names.
>
> I think I've got properties working now as an experiment on my
> machine, generated at run time using the "human readable name" for
> each parameter.  We would need to special case "switch" arguments
> (i.e. those which take no value) as outlined above.
>
> Does this sound worthwhile?  If so, I'll put together an enhancement
> bug with a patch, or a branch on github.

I've filed Bug 2822 for these enhancements to the Bio.Application
based command line objects,
http://bugzilla.open-bio.org/show_bug.cgi?id=2822

So far there is just a patch to support keyword arguments (quite
simple really), with an example of how this changes the interface.

I'm still working on the code to do properties as well - I thought I'd
solved this a few days ago but it doesn't quite work...

Peter



More information about the Biopython-dev mailing list