/haem

A Python library for working on Bioinformatics problems

Primary LanguagePython

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