ó
–°Ic           @   sí   d  Z  d d d „  ƒ  YZ d d d „  ƒ  YZ d d d „  ƒ  YZ d d d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d e f d „  ƒ  YZ
 d d d „  ƒ  YZ d S(   sÕ  Represent a Sequence Feature holding info about a part of a sequence.

This is heavily modeled after the Biocorba SeqFeature objects, and
may be pretty biased towards GenBank stuff since I'm writing it
for the GenBank parser output...

What's here:

Base class to hold a Feature.
----------------------------
classes:
o SeqFeature

Hold information about a Reference.
----------------------------------

This is an attempt to create a General class to hold Reference type
information.

classes:
o Reference

Specify locations of a feature on a Sequence.
---------------------------------------------

This aims to handle, in Ewan's words, 'the dreaded fuzziness issue' in
much the same way as Biocorba. This has the advantages of allowing us
to handle fuzzy stuff in case anyone needs it, and also be compatible
with Biocorba.

classes:
o FeatureLocation - Specify the start and end location of a feature.

o ExactPosition - Specify the position as being exact.
o WithinPosition - Specify a position occuring within some range.
o BetweenPosition - Specify a position occuring between a range.
o BeforePosition - Specify the position as being found before some base.
o AfterPosition - Specify the position as being found after some base.
t
   SeqFeaturec        
   B   sM   e  Z d  Z d d d d d i  g  d d d „	 Z d „  Z d „  Z d „  Z RS(   sÒ  Represent a Sequence Feature on an object.

    Attributes:
    o location - the location of the feature on the sequence
    o type - the specified type of the feature (ie. CDS, exon, repeat...)
    o location_operator - a string specifying how this SeqFeature may
    be related to others. For example, in the example GenBank feature
    shown below, the location_operator would be "join"
    o strand - A value specifying on which strand (of a DNA sequence, for
    instance) the feature deals with. 1 indicates the plus strand, -1 
    indicates the minus strand, 0 indicates both strands, and None indicates
    that strand doesn't apply (ie. for proteins) or is not known.
    o id - A string identifier for the feature.
    o ref - A reference to another sequence. This could be an accession
    number for some different sequence.
    o ref_db - A different database for the reference accession number.
    o qualifier - A dictionary of qualifiers on the feature. These are
    analagous to the qualifiers from a GenBank feature table. The keys of
    the dictionary are qualifier names, the values are the qualifier
    values.
    o sub_features - Additional SeqFeatures which fall under this 'parent'
    feature. For instance, if we having something like:

    CDS    join(1..10,30..40,50..60)

    The the top level feature would be a CDS from 1 to 60, and the sub
    features would be of 'CDS_join' type and would be from 1 to 10, 30 to
    40 and 50 to 60, respectively.
    t    s   <unknown id>c
   
      C   sU   | |  _  | |  _ | |  _ | |  _ | |  _ i  |  _ g  |  _ | |  _ |	 |  _ d S(   s/   Initialize a SeqFeature on a Sequence.
        N(	   t   locationt   typet   location_operatort   strandt   idt
   qualifierst   sub_featurest   reft   ref_db(
   t   selfR   R   R   R   R   R   R   R	   R
   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   __init__G   s    								c         C   s  d |  j  t |  j ƒ f } |  j r? | d t |  j ƒ 7} n  |  j rb | d t |  j ƒ 7} n  |  j r… | d t |  j ƒ 7} n  |  j r· |  j d k r· | d t |  j ƒ 7} n  |  j rÚ | d t |  j ƒ 7} n  |  j rý | d t |  j ƒ 7} n  | d	 7} | S(
   s4   A string representation of the record for debugging.s   %s(%ss	   , type=%ss   , location_operator=%ss   , strand=%ss   <unknown id>s   , id=%ss   , ref=%ss   , ref_db=%st   )(	   t	   __class__t   reprR   R   R   R   R   R	   R
   (   R   t   answer(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   __repr__\   s    					
c         C   sà   d |  j  } | d |  j 7} | d |  j |  j f 7} | d |  j 7} | d 7} |  j j ƒ  } | j ƒ  x) | D]! } | d | |  j | f 7} qs Wt |  j	 ƒ d k rÜ | d 7} x" |  j	 D] } | d	 | 7} qÁ Wn  | S(
   sL   A readable summary of the feature intended to be printed to screen.
        s	   type: %s
s   location: %s
s   ref: %s:%s
s   strand: %s
s   qualifiers: 
s   	Key: %s, Value: %s
i    s   Sub-Features
s   %s
(
   R   R   R	   R
   R   R   t   keyst   sortt   lenR   (   R   t   outt   qualifier_keyst   qual_keyt   sub_feature(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   __str__n   s    

	
c         C   s•   t  d |  j j | ƒ d |  j d |  j d |  j d |  j d |  j d |  j ƒ } g  |  j	 D] } | j | ƒ ^ q[ | _	 t
 |  j j ƒ  ƒ | _ | S(   sq   Returns a copy of the feature with its location shifted (PRIVATE).

        The annotation qaulifiers are copied.R   R   R   R   R   R	   R
   (   R    R   t   _shiftR   R   R   R   R	   R
   R   t   dictR   t	   iteritems(   R   t   offsetR   t   f(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ‚   s    					(N(   t   __name__t
   __module__t   __doc__t   NoneR   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR    )   s   			t	   Referencec           B   s    e  Z d  Z d „  Z d „  Z RS(   sf  Represent a Generic Reference object.

    Attributes:
    o location - A list of Location objects specifying regions of
    the sequence that the references correspond to. If no locations are
    specified, the entire sequence is assumed.
    o authors - A big old string, or a list split by author, of authors
    for the reference.
    o title - The title of the reference.
    o journal - Journal the reference was published in.
    o medline_id - A medline reference for the article.
    o pubmed_id - A pubmed reference for the article.
    o comment - A place to stick any comments about the reference.
    c         C   sL   g  |  _  d |  _ d |  _ d |  _ d |  _ d |  _ d |  _ d |  _ d  S(   NR   (   R   t   authorst   consrtmt   titlet   journalt
   medline_idt	   pubmed_idt   comment(   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ¦   s    							c         C   s¯   d } x |  j  D] } | d | 7} q W| d |  j 7} |  j rV | d |  j 7} n  | d |  j 7} | d |  j 7} | d |  j 7} | d |  j 7} | d	 |  j 7} | S(
   s4   Output an informative string for debugging.
        R   s   location: %s
s   authors: %s
s   consrtm: %s
s
   title: %s
s   journal: %s
s   medline id: %s
s   pubmed id: %s
s   comment: %s
(   R   R$   R%   R&   R'   R(   R)   R*   (   R   R   t   single_location(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   °   s    	(   R   R    R!   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR#   —   s   	
t   FeatureLocationc           B   s;   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s  Specify the location of a feature along a sequence.

    This attempts to deal with fuzziness of position ends, but also
    make it easy to get the start and end in the 'normal' case (no
    fuzziness).

    You should access the start and end attributes with
    your_location.start and your_location.end. If the start and
    end are exact, this will return the positions, if not, we'll return
    the approriate Fuzzy class with info about the position and fuzziness.

    Note that the start and end location numbering follow Python's scheme,
    thus a GenBank entry of 123..150 (one based counting) becomes a location
    of [122:150] (zero based counting).
    c         C   sX   t  | t ƒ r | |  _ n t | ƒ |  _ t  | t ƒ rE | |  _ n t | ƒ |  _ d S(   sã  Specify the start and end of a sequence feature.

        start and end arguments specify the values where the feature begins
        and ends. These can either by any of the *Position objects that
        inherit from AbstractPosition, or can just be integers specifying the
        position. In the case of integers, the values are assumed to be
        exact and are converted in ExactPosition arguments. This is meant
        to make it easy to deal with non-fuzzy ends.
        N(   t
   isinstancet   AbstractPositiont   _startt   ExactPositiont   _end(   R   t   startt   end(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   Ó   s    
c         C   s   d |  j  |  j f S(   sô   Returns a representation of the location (with python counting).

        For the simple case this uses the python splicing syntax, [122:150]
        (zero based counting) which GenBank would call 123..150 (one based
        counting).
        s   [%s:%s](   R/   R1   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ç   s    c         C   s&   d |  j  t |  j ƒ t |  j ƒ f S(   s6   A string representation of the location for debugging.s	   %s(%s,%s)(   R   R   R2   R3   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ð   s    c         C   s+   t  d |  j j | ƒ d |  j j | ƒ ƒ S(   s?   Returns a copy of the location shifted by the offset (PRIVATE).R2   R3   (   R,   R/   R   R1   (   R   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   õ   s    c         C   sú   | d k r |  j  S| d k r& |  j S| d k r† |  j  |  j k r` t |  j  t ƒ r` |  j  j St |  j  j |  j  j |  j  j ƒ Snp | d k ræ |  j  |  j k rÀ t |  j  t ƒ rÀ |  j j St |  j j |  j j |  j j ƒ Sn t d | ƒ ‚ d S(   s»  Make it easy to get non-fuzzy starts and ends.

        We override get_attribute here so that in non-fuzzy cases we
        can just return the start and end position without any hassle.

        To get fuzzy start and ends, just ask for item.start and
        item.end. To get non-fuzzy attributes (ie. the position only)
        ask for 'item.nofuzzy_start', 'item.nofuzzy_end'. These should return
        the largest range of the fuzzy position. So something like:
        (10.20)..(30.40) should return 10 for start, and 40 for end.

        The special tricky case where is when we have a single between position
        argument like 2^3 for the range. We want nofuzzy_start and nofuzzy_end
        to give a reasonable approximation of what this really means, which
        is an empty string -- so the same position for both. Doing a special
        case here sucks, but there is really not a general rule you can apply
        to this.
        R2   R3   t   nofuzzy_startt   nofuzzy_ends   Cannot evaluate attribute %s.N(	   R/   R1   R-   t   BetweenPositiont   positiont   mint	   extensiont   maxt   AttributeError(   R   t   attr(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   __getattr__ú   s"    	
	
(   R   R    R!   R   R   R   R   R=   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR,   Ã   s   					R.   c           B   s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   s1   Abstract base class representing a position.
    c         C   s   | |  _  | |  _ d  S(   N(   R7   R9   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   '  s    	c         C   s&   d |  j  t |  j ƒ t |  j ƒ f S(   s4   String representation of the location for debugging.s	   %s(%s,%s)(   R   R   R7   R9   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   +  s    c         C   s.   t  | t ƒ s t d ƒ ‚ t |  j | j ƒ S(   s  A simple comparison function for positions.

        This is very simple-minded and just compares the position attribute
        of the features; extensions are not considered at all. This could
        potentially be expanded to try to take advantage of extensions.
        s>   We can only do comparisons between Biopython Position objects.(   R-   R.   t   AssertionErrort   cmpR7   (   R   t   other(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   __cmp__0  s    	c         C   s   |  j  |  j | |  j ƒ S(   N(   R   R7   R9   (   R   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   <  s    (   R   R    R!   R   R   RA   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR.   $  s
   			R0   c           B   s,   e  Z d  Z d d „ Z d „  Z d „  Z RS(   so  Specify the specific position of a boundary.

    o position - The position of the boundary.
    o extension - An optional argument which must be zero since we don't
    have an extension. The argument is provided so that the same number of
    arguments can be passed to all position types.

    In this case, there is no fuzziness associated with the position.
    i    c         C   s6   | d k r t  d | ƒ ‚ n  t j |  | d ƒ d  S(   Ni    s)   Non-zero extension %s for exact position.(   R;   R.   R   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   J  s    c         C   s/   |  j  d k s t ‚ d |  j t |  j ƒ f S(   sB   String representation of the ExactPosition location for debugging.i    s   %s(%s)(   R9   R>   R   R   R7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   P  s    c         C   s   t  |  j ƒ S(   N(   t   strR7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   U  s    (   R   R    R!   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR0   @  s   		t   WithinPositionc           B   s#   e  Z d  Z d d „ Z d „  Z RS(   s§  Specify the position of a boundary within some coordinates.

    Arguments:
    o position - The start position of the boundary
    o extension - The range to which the boundary can extend.

    This allows dealing with a position like ((1.4)..100). This
    indicates that the start of the sequence is somewhere between 1
    and 4. To represent that with this class we would set position as
    1 and extension as 3.
    i    c         C   s   t  j |  | | ƒ d  S(   N(   R.   R   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   d  s    c         C   s   d |  j  |  j  |  j f S(   Ns   (%s.%s)(   R7   R9   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   g  s    (   R   R    R!   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyRC   X  s   R6   c           B   s#   e  Z d  Z d d „ Z d „  Z RS(   s©  Specify the position of a boundary between two coordinates.

    Arguments:
    o position - The start position of the boundary.
    o extension - The range to the other position of a boundary.

    This specifies a coordinate which is found between the two positions.
    So this allows us to deal with a position like ((1^2)..100). To
    represent that with this class we set position as 1 and the
    extension as 1.
    i    c         C   s   t  j |  | | ƒ d  S(   N(   R.   R   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   v  s    c         C   s   d |  j  |  j  |  j f S(   Ns   (%s^%s)(   R7   R9   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   y  s    (   R   R    R!   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR6   j  s   t   BeforePositionc           B   s,   e  Z d  Z d d „ Z d „  Z d „  Z RS(   sÒ  Specify a position where the actual location occurs before it.

    Arguments:
    o position - The upper boundary of where the location can occur.
    o extension - An optional argument which must be zero since we don't
    have an extension. The argument is provided so that the same number of
    arguments can be passed to all position types.

    This is used to specify positions like (<10..100) where the location
    occurs somewhere before position 10.
    i    c         C   s6   | d k r t  d | ƒ ‚ n  t j |  | d ƒ d  S(   Ni    s)   Non-zero extension %s for exact position.(   R;   R.   R   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ˆ  s    c         C   s/   |  j  d k s t ‚ d |  j t |  j ƒ f S(   s6   A string representation of the location for debugging.i    s   %s(%s)(   R9   R>   R   R   R7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   Ž  s    c         C   s   d |  j  S(   Ns   <%s(   R7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   “  s    (   R   R    R!   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyRD   |  s   	t   AfterPositionc           B   s,   e  Z d  Z d d „ Z d „  Z d „  Z RS(   sÒ  Specify a position where the actual location is found after it.

    Arguments:
    o position - The lower boundary of where the location can occur.
    o extension - An optional argument which must be zero since we don't
    have an extension. The argument is provided so that the same number of
    arguments can be passed to all position types.

    This is used to specify positions like (>10..100) where the location
    occurs somewhere after position 10.
    i    c         C   s6   | d k r t  d | ƒ ‚ n  t j |  | d ƒ d  S(   Ni    s)   Non-zero extension %s for exact position.(   R;   R.   R   (   R   R7   R9   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ¢  s    c         C   s/   |  j  d k s t ‚ d |  j t |  j ƒ f S(   s6   A string representation of the location for debugging.i    s   %s(%s)(   R9   R>   R   R   R7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ¨  s    c         C   s   d |  j  S(   Ns   >%s(   R7   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ­  s    (   R   R    R!   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyRE   –  s   	t   OneOfPositionc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   sI  Specify a position where the location can be multiple positions.

    This models the GenBank 'one-of(1888,1901)' function, and tries
    to make this fit within the Biopython Position models. In our case
    the position of the "one-of" is set as the lowest choice, and the
    extension is the range to the highest choice.
    c         C   sÆ   | |  _  d } d } x“ |  j  D]ˆ } t | t ƒ sD t d | ƒ ‚ | d k rq | d k rq | j } | j } q | j | k rŒ | j } q | j | k  r | j } q q Wt j |  | | | ƒ d S(   s£   Initialize with a set of posssible positions.

        position_list is a list of AbstractPosition derived objects,
        specifying possible locations.
        s!   Expected position objects, got %rN(   t   position_choicesR"   R-   R.   R>   R7   R   (   R   t   position_listt   smallestt   largestt   position_choice(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ¸  s    		c         C   s   d |  j  t |  j ƒ f S(   sB   String representation of the OneOfPosition location for debugging.s   %s(%s)(   R   R   RG   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   Ð  s    c         C   s:   d } x |  j  D] } | d | 7} q W| d  d } | S(   Ns   one-of(s   %s,iÿÿÿÿR   (   RG   (   R   R   R7   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   Ô  s
    (   R   R    R!   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyRF   °  s   		t   PositionGapc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   sD   Simple class to hold information about a gap between positions.
    c         C   s   | |  _  d S(   sI   Intialize with a position object containing the gap information.
        N(   t   gap_size(   R   RM   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ß  s    c         C   s   d |  j  t |  j ƒ f S(   s:   A string representation of the position gap for debugging.s   %s(%s)(   R   R   RM   (   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   ä  s    c         C   s   d |  j  } | S(   Ns   gap(%s)(   RM   (   R   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyR   è  s    (   R   R    R!   R   R   R   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyRL   Ü  s   		N(    (    (    (    (    (   R!   R    R#   R,   R.   R0   RC   R6   RD   RE   RF   RL   (    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/SeqFeature.pyt   <module>'   s   n,a,