skbio.sequence.RNA.reverse_transcribe

RNA.reverse_transcribe()[source]

Reverse transcribe RNA into DNA.

State: Stable as of 0.4.1.

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

Reverse transcribed sequence.

Return type

DNA

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