skbio.sequence.DNA.transcribe#

DNA.transcribe()[source]#

Transcribe DNA into RNA.

DNA sequence is assumed to be the coding strand. Thymine (T) is replaced with uracil (U) in the transcribed sequence.

Returns:
RNA

Transcribed sequence.

Notes

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

Examples

Transcribe DNA into RNA:

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