skbio.sequence.GeneticCode.from_ncbi#

classmethod GeneticCode.from_ncbi(table_id=1)[source]#

Return NCBI genetic code specified by table ID.

Changed in version 0.7.4: Added definitions of tables 15, 26-33. Updated definition for table 3.

Parameters:
table_idint, optional

Table ID of the NCBI genetic code to return. At present, tables 1-33 are supported.

Returns:
GeneticCode

NCBI genetic code specified by table_id.

Notes

The table IDs and genetic codes available in this method and used throughout the examples are defined in [1].

References

Examples

Get the NCBI thraustochytrium mitochondrial genetic code (23):

>>> tmgc = GeneticCode.from_ncbi(23)
>>> tmgc.name
'Thraustochytrium Mitochondrial'