File: app-get.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 (13 lines) | stat: -rw-r--r-- 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
.. _get_app:

Getting an app
--------------

The ``get_app()`` function is a top-level import. It allows you to create an app instance by passing the name of the app you want as a string along with the values for any positional or keyword arguments. (See :ref:`app_help`.) Below, I create an ``omit_degenerates`` app for a DNA moltype.

.. jupyter-execute::

    from cogent3 import get_app

    just_nucs = get_app("omit_degenerates", moltype="dna")
    just_nucs