[gt-users] A series of questions regarding GenomeTools C and its Python interface
James Casbon
casbon at gmail.com
Mon Apr 27 16:57:40 CEST 2009
2009/4/27 Sascha Steinbiss <steinbiss at zbh.uni-hamburg.de>:
> The Python bindings to the whole of GenomeTools are by no means
> complete. Most of the existing bindings cover the AnnotationSketch
> visualisation library and its dependencies. However, we are always glad
> to accept contributions ;)
I have a couple of itches to scratch about the python bindings which I
had not been mentioning until now...
Firstly, python code should be indented with four spaces. The python
style guide - http://www.python.org/dev/peps/pep-0008/ - says:
"Use 4 spaces per indentation level."
It's unequivocal. I might knock up a patch if you indicate it would
be accepted.
Secondly, what's with all this obj._as_parameter and from_param stuff?
You seem to be putting a classmethod in every class to return an
object variable. Just access the variable. The other thing
from_parameter does is check the object is the correct class. I'm
not sure why you are doing this - to ensure the type of
_as_parameter_?
cheers,
James
More information about the gt-users
mailing list