from_seq
Create a pool containing a single, fixed sequence. Inline region tags
(<name>...</name>) delimit named segments for later targeting by
mutagenesis, scan, or replacement operations.
import poolparty as pp
pp.init()
Parameters
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
The sequence string. Inline region tags ( |
|
|
|
Background pool. When provided with |
|
|
|
Region to replace in |
|
|
|
If |
|
|
|
Display style applied to the sequence (affects rendering only). |
|
|
|
Dimension-name ordering for downstream multi-pool iteration. |
|
|
|
Prefix for auto-generated sequence names. |
Note
Only the most commonly used parameters are shown above. For the full
parameter list, see from_seq() in the
API Reference.
Examples
Basic single sequence
Create a pool from a plain sequence string.
pool = pp.from_seq("ACGTACGT")
pool.print_library()
Applying a display style
style controls how the sequence is rendered without changing its value.
pool = pp.from_seq("ACGTACGT", style="blue bold")
pool.print_library()
Replacing a named region in a background pool
Provide pool and region to substitute the content of a tagged region.
import poolparty as pp
pp.init()
wt = pp.from_seq("AAAA<cre>ATCG</cre>TTTT")
mutant = pp.from_seq("GGGG", pool=wt, region="cre")
wt.print_library()
mutant.print_library()
See from_seq().