deletion_multiscan ================== Delete segments at multiple positions simultaneously, placing deletion markers at each site. Deletion sites are guaranteed to be non-overlapping. Use ``mode='sequential'`` to enumerate arrangements as separate states; ``mode='random'`` samples one arrangement per draw (default ``num_states`` is 1 unless you set it higher). .. 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. * - ``deletion_length`` - ``int`` - *(required)* - Length of each deletion window. * - ``num_deletions`` - ``int`` - *(required)* - Number of simultaneous non-overlapping deletions per draw. * - ``deletion_marker`` - ``str | None`` - ``"-"`` - String to place at each deletion site. ``None`` removes the bases outright, producing shorter output sequences. * - ``positions`` - ``list | None`` - ``None`` - Allowed position sets for each deletion window. ``None`` allows any valid non-overlapping arrangement. * - ``region`` - ``str | list | None`` - ``None`` - Named region or interval to restrict deletions to. * - ``names`` - ``list[str] | None`` - ``None`` - Names for each deletion window. * - ``min_spacing`` - ``int | None`` - ``None`` - Minimum gap (in bases) between deletion windows. * - ``max_spacing`` - ``int | None`` - ``None`` - Maximum gap (in bases) between deletion windows. * - ``prefix`` - ``str | None`` - ``None`` - Prefix for the operation node name in the pool graph. * - ``mode`` - ``str`` - ``"random"`` - ``"random"`` or ``"sequential"``. * - ``num_states`` - ``int | None`` - ``None`` - Number of states. ``None`` lets PoolParty choose automatically. * - ``style`` - ``str | None`` - ``None`` - Display style for deletion markers. * - ``iter_order`` - ``float | None`` - ``None`` - Iteration priority for downstream multi-pool iteration. * - ``cards`` - ``dict | list | None`` - ``None`` - Design card columns to include in library output. ---- .. note:: Only the most commonly used parameters are shown above. For the full parameter list, see :func:`~poolparty.deletion_multiscan` in the :doc:`API Reference `. Examples -------- Two simultaneous single-base deletions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark two randomly chosen single-base positions with the default ``"-"`` deletion marker. .. code-block:: python wt = pp.from_seq("ATCGATCGATCG") scan = wt.deletion_multiscan(deletion_length=1, num_deletions=2, mode="random", style="grey") scan.print_library() .. raw:: html