Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 388 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 388 Bytes

haem

Quick start

Create a DNA sequence, complement and transcribe it:

>>> import haem
>>> dna = haem.DNASequence("ACGT")
>>> dna.complement
<DNASequence: TGCA>
>>> dna.transcribe()
<RNASequence: ACGU>

Create an amino acid from a codon and from an ambiguous codon:

>>> haem.AminoAcid("UCA")
AminoAcid.SERINE
>>> haem.AminoAcid("UCN")
AminoAcid.SERINE