[Biopython] Test feature location type

Jim Mailman jimmailman1 at gmail.com
Thu Oct 30 14:21:16 UTC 2014


Hi Peter, Thanks, it'd be nice to be able to get the type. Jim
On Oct 30, 2014 7:35 AM, "Peter Cock" <p.j.a.cock at googlemail.com> wrote:

> On Thu, Oct 30, 2014 at 10:15 AM, Jim Mailman <jimmailman1 at gmail.com>
> wrote:
> > How to test Seqfeature location to know it's a Exact location, or non
> exact
> > type, and know what type it is? Thanks, Jim
>
> Hi Jim,
>
> I would look at the position's class type, e.g.
>
> from Bio.SeqFeature import ExactPosition
> #Here f is a SeqFeature object:
> print(isinstance(f.loc.start, ExactPosition))
>
> Note that a location has both a start and end position,
> either of which can be exact/fuzzy.
>
> Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20141030/6aa89105/attachment.html>


More information about the Biopython mailing list