[Biopython] sequence coordinate mapping
biopython at maubp.freeserve.co.uk
Fri Jun 18 08:00:04 EDT 2010
On Fri, Jun 18, 2010 at 11:01 AM, Peter <biopython at maubp.freeserve.co.uk> wrote:
> Just thinking out loud, implementing "in" and/or sorting on our
> FeatureLocation (and perhaps SeqFeature) objects (i.e. implement
> the special __contains__ method, __lt__ method etc) could be
> useful syntactic sugar for this kind of work.
Something like this? This implements __contains__ on the SeqFeature
so that you can check if a simple location (integer) is within a feature.
There is a docstring with examples, just look at the diff here:
Would that go part way to solving your task?
More information about the Biopython