extract_region
==============
Extract the content of a named region as a new pool. The flanking sequence
is discarded and the result contains only the bases inside the region tags.
.. code-block:: python
import poolparty as pp
pp.init()
----
Parameters
----------
.. list-table::
:widths: auto
:header-rows: 1
* - Parameter
- Type
- Default
- Description
* - ``pool``
- ``Pool | str``
- *(required)*
- Input pool or sequence string containing the named region.
* - ``region_name``
- ``str``
- *(required)*
- Name of the region whose content will be extracted.
* - ``rc``
- ``bool``
- ``False``
- If ``True``, reverse-complement the extracted content.
* - ``iter_order``
- ``float | None``
- ``None``
- Enumeration order when combined with other pools.
* - ``prefix``
- ``str | None``
- ``None``
- Prefix for the operation node name in the pool graph.
----
.. note::
Only the most commonly used parameters are shown above. For the full
parameter list, see :func:`~poolparty.extract_region` in the
:doc:`API Reference `.
Examples
--------
Extract a tagged region
~~~~~~~~~~~~~~~~~~~~~~~
Pull the content of the ``cre`` region out of a flanked sequence.
.. code-block:: python
bg = pp.from_seq("AAAA