<p>Hi Peter, Thanks, it'd be nice to be able to get the type. Jim</p>
<div class="gmail_quote">On Oct 30, 2014 7:35 AM, "Peter Cock" <<a href="mailto:p.j.a.cock@googlemail.com">p.j.a.cock@googlemail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Oct 30, 2014 at 10:15 AM, Jim Mailman <<a href="mailto:jimmailman1@gmail.com">jimmailman1@gmail.com</a>> wrote:<br>
> How to test Seqfeature location to know it's a Exact location, or non exact<br>
> type, and know what type it is? Thanks, Jim<br>
<br>
Hi Jim,<br>
<br>
I would look at the position's class type, e.g.<br>
<br>
from Bio.SeqFeature import ExactPosition<br>
#Here f is a SeqFeature object:<br>
print(isinstance(f.loc.start, ExactPosition))<br>
<br>
Note that a location has both a start and end position,<br>
either of which can be exact/fuzzy.<br>
<br>
Peter<br>
</blockquote></div>