
0Ic           @   s   d  Z  d d l m Z m Z d d l m Z d d d     YZ e e j e j  Z	 e e j
 e j  Z e e j e j  Z d S(   s  Code to transcribe DNA into RNA or back (OBSOLETE).

You are now encouraged to use the Seq object methods or the functions
in Bio.Seq instead.

This module is now considered to be obsolete, and is likely to be deprecated
in a future release of Biopython, and later removed.
i(   t   Alphabett   Seq(   t   IUPACt
   Transcribec           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s   | |  _  | |  _ d  S(   N(   t   dna_alphabett   rna_alphabet(   t   selfR   R   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/Transcribe.pyt   __init__   s    	c         C   sF   | j  |  j k s t d   | j } t j | j d d  |  j  S(   Ns%   transcribe has the wrong DNA alphabett   Tt   U(   t   alphabetR   t   AssertionErrort   dataR   t   replaceR   (   R   t   dnat   s(    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/Transcribe.pyt
   transcribe   s    		c         C   sF   | j  |  j k s t d   | j } t j | j d d  |  j  S(   Ns*   back transcribe has the wrong RNA alphabetR	   R   (   R
   R   R   R   R   R   R   (   R   t   rnaR   (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/Transcribe.pyt   back_transcribe   s    		(   t   __name__t
   __module__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/Transcribe.pyR      s   		N(    (   t   __doc__t   BioR    R   t   Bio.AlphabetR   R   t   generic_dnat   generic_rnat   generic_transcribert   ambiguous_dnat   ambiguous_rnat   ambiguous_transcribert   unambiguous_dnat   unambiguous_rnat   unambiguous_transcriber(    (    (    s   /oak/stanford/groups/akundaje/marinovg/programs/biopython-1.50.tar.gz/biopython-1.50/build/lib.linux-x86_64-2.7/Bio/Transcribe.pyt   <module>   s   			