mutcleaner.core.codon#

Classes

CodonTable(name, codon_map[, start_codons, ...])

codon table used to translate codons to amino acids

class mutcleaner.core.codon.CodonTable(name, codon_map, start_codons=None, stop_codons=None)[source]#

Bases: object

codon table used to translate codons to amino acids

Methods

get_standard_table([seq_type])

get standard codon table (NCBI standard)

get_table_by_name(name[, seq_type])

get codon table by name

is_start_codon(codon)

check if codon is a start codon

is_stop_codon(codon)

check if codon is a stop codon

translate_codon(codon)

translate single codon to corresponding amino acid

classmethod get_standard_table(seq_type='DNA')[source]#

get standard codon table (NCBI standard)

Return type:

CodonTable

classmethod get_table_by_name(name, seq_type='DNA')[source]#

get codon table by name

Return type:

CodonTable

is_start_codon(codon)[source]#

check if codon is a start codon

Return type:

bool

is_stop_codon(codon)[source]#

check if codon is a stop codon

Return type:

bool

translate_codon(codon)[source]#

translate single codon to corresponding amino acid

Return type:

str