ó
Ñ%�Tc           @   s=   d  Z  e d d d d g ƒ Z d „  Z d „  Z d „  Z d S(	   sJ   Common functions for reporting errors in rotamerize and extendChain input.t   At   Gt   Ct   Uc         C   sq   d t  |  ƒ d d d d g } x | D] } | GHq' W| d c d 7<| d c d 7<t d j | ƒ d	 ƒ d
 S(   s±   Report that a residue contains PDB2-formatted atom names
    
    ARGUMENTS:
        resNum - the number of the residue containing PDB2 atom names
    RETURNS:
        None
    s5   This molecule appears to use PDB2 naming (nucleotide s    contains a C1* atom).s6   RCrane requires PDB3 naming (e.g. C1' instead of C1*).s-   This PDB file can be updated using Remediators;   (http://kinemage.biochem.duke.edu/software/remediator.php).i    t    i   s   

Rotamerization canceled.N(   t   strt   createRCraneErrorDialogt   join(   t   resNumt   errorMsgt   curline(    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/reportInputErrors.pyt   reportPDB2Error   s    			c         C   s/   d t  |  ƒ d GHt d t  |  ƒ d ƒ d S(   s¬   Report that a residue contains an insertion code
    
    ARGUMENTS:
        resNum - the number of the residue containing the insertion code
    RETURNS:
        None
    s   Residue sb    contains an insertion code.  RCrane currently cannot rotamerize nucleotides with insertion codes.N(   R   t   add_status_bar_text(   R   (    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/reportInputErrors.pyt   reportInsCodeError-   s    	c         C   sK   d t  |  ƒ d t  | ƒ d GHt d t  |  ƒ d t  | ƒ d ƒ d S(   s±   Report that a residue contains an insertion code
    
    ARGUMENTS:
        resNum - the number of the residue containing the modified nucleotide
    RETURNS:
        None
    s   Nucleotide s    is a modified nucleotide (sH   ).  RCrane does not currently support rotamerizing modified nucleotides.N(   R   R   (   R   t   resType(    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/reportInputErrors.pyt   reportModifiedNucError:   s    	!N(   t   __doc__t	   frozensett   STANDARD_BASESR   R   R   (    (    (    s_   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/rcrane/reportInputErrors.pyt   <module>   s   		