strings.dna

Functions

dna(→ str)

https://en.wikipedia.org/wiki/DNA

Module Contents

strings.dna.dna(dna: str) str

https://en.wikipedia.org/wiki/DNA Returns the second side of a DNA strand

>>> dna("GCTA")
'CGAT'
>>> dna("ATGC")
'TACG'
>>> dna("CTGA")
'GACT'
>>> dna("GFGG")
Traceback (most recent call last):
    ...
ValueError: Invalid Strand