ó
Ñ%�Tc           @   s   d  Z  d d d „  ƒ  YZ d S(   s-   A class for storing data about a suite of RNAt   Suitec           B   s_   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   s  A class for storing data about a suite of RNA
    
    NOTE:
        No actual data is stored in the Suite object other than a link to the starting and
        ending nucleotides.  All functions defined here simply call the appropriate
        Nucleotide object function.
    c         C   s   | |  _  | |  _ d S(   s5  Initialize a Suite object
        
        ARGUMENTS:
            startingNuc - a Nucleotide object representing the starting nucleotide of the suite
            endingNuc   - a Nucleotide object representing the ending nucleotide of the suite
        RETURNS:
            an initialized Suite object
        N(   t   startingNuct	   endingNuc(   t   selfR   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   __init__   s    
	c         C   s   |  j  j ƒ  S(   s*   Calculate the sugar distance for the suite(   R   t   startingSugarDist(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt	   sugarDist)   s    c         C   s   |  j  j ƒ  S(   s   Calculate theta for the suite(   R   t   theta(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyR   -   s    c         C   s   |  j  j ƒ  S(   s   Calculate eta for the suite(   R   t   eta(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyR   1   s    c         C   s   |  j  j ƒ  S(   sS   Calculate the starting base-phosphate perpendicular (P-perp) distance for the suite(   R   t   pperp(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   startingPperp5   s    c         C   s   |  j  j ƒ  S(   sQ   Calculate the ending base-phosphate perpendicular (P-perp) distance for the suite(   R   R	   (   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   endingPperp9   s    c         C   s   |  j  j ƒ  S(   sA   Calculate the starting phosphate-phosphate distance for the suite(   R   t   phosDist(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   startingPhosDist=   s    c         C   s   |  j  j ƒ  S(   s?   Calculate the ending phosphate-phosphate distance for the suite(   R   R   (   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   endingPhosDistA   s    c         C   s
   |  j  j S(   s   The suite number(   R   t   resNum(   R   (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   suiteNumE   s    (   t   __name__t
   __module__t   __doc__R   R   R   R   R
   R   R   R   R   (    (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyR       s   								N(    (   R   R    (    (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/suite.pyt   <module>   s   