skbio.sequence.RNA.reverse_transcribe#

RNA.reverse_transcribe()[source]#

Reverse transcribe RNA into DNA.

It returns the coding DNA strand of the RNA sequence, i.e. uracil (U) is replaced with thymine (T) in the reverse transcribed sequence.

Returns:
DNA

Reverse transcribed sequence.

Notes

RNA sequence’s metadata and positional metadata are included in the transcribed DNA sequence.

Examples

Reverse transcribe RNA into DNA:

>>> from skbio import RNA
>>> rna = RNA('UAACGUUA')
>>> rna
RNA
--------------------------
Stats:
    length: 8
    has gaps: False
    has degenerates: False
    has definites: True
    GC-content: 25.00%
--------------------------
0 UAACGUUA
>>> rna.reverse_transcribe()
DNA
--------------------------
Stats:
    length: 8
    has gaps: False
    has degenerates: False
    has definites: True
    GC-content: 25.00%
--------------------------
0 TAACGTTA