[gt-users] extending python bindings

Brent Pedersen bpederse at gmail.com
Thu Nov 20 02:02:41 CET 2008


hi,
are there plans to expand the bindings to provide more granular access
to the library, and or will you accept patches that do so?

i'd like to be able to create features on the fly and manipulate and
draw them, kinda like this example in c:
http://github.com/gordon/genometools/tree/master/src%2Fexamples%2Fsketch_constructed.c

i had a quick go at adding a GTFeatureNode that can be constructed
from start, stop, strand, seqid. i've attached
the patch and pasted here:
http://pastebin.ca/raw/1261903

i'm not sure how to handle the strand enum with ctypes. and i'm not
sure of the relation between the _api.h files and
the corresponding .h files...
any help on that or comments on the code are welcome.

thanks,
-brent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtfeaturenode.diff
Type: text/x-diff
Size: 3357 bytes
Desc: not available
Url : http://genometools.org/pipermail/gt-users/attachments/20081119/c4ec58b0/attachment.bin 


More information about the gt-users mailing list