File: what_codes.rst

package info (click to toggle)
python-cogent 2024.5.7a1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 74,600 kB
  • sloc: python: 92,479; makefile: 117; sh: 16
file content (29 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.. jupyter-execute::
    :hide-code:

    import set_working_directory

***********************
Available genetic codes
***********************

.. jupyter-execute::

    from cogent3 import available_codes

    available_codes()



Getting a genetic code with ``get_code()``
==========================================

This function can be used directly to get a genetic code. We will get the code with ID 4.

.. jupyter-execute::

    from cogent3 import get_code

    gc = get_code(4)
    gc