rc
Return the reverse complement of a sequence or a named region. By default the
entire sequence is reverse-complemented and region tags are stripped; pass
region= to restrict the operation to a single tagged segment.
import poolparty as pp
pp.init()
Parameters
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
Pool or sequence string to reverse complement. |
|
|
|
Named region tag, |
|
|
|
If |
|
|
|
Dimension-name ordering for downstream multi-pool iteration. |
|
|
|
Prefix for sequence names in the resulting pool. |
|
|
|
Display style passed to |
Note
Only the most commonly used parameters are shown above. For the full
parameter list, see rc() in the
API Reference.
Examples
Reverse complement a simple sequence
Take the reverse complement of the 4-mer ATCG; the result is CGAT.
import poolparty as pp
pp.init()
wt = pp.from_seq("ATCG")
r = pp.rc(wt)
r.print_library()
Reverse complement a longer tagged sequence
Reverse-complement the full sequence AAAA<cre>ATCGATCG</cre>TTTT
(tags are stripped before the operation and not carried into the output).
import poolparty as pp
pp.init()
wt = pp.from_seq("AAAA<cre>ATCGATCG</cre>TTTT")
r = pp.rc(wt)
r.print_library()
Reverse complement only a named region
Pass region= to reverse-complement only the content of the cre
segment; flanking sequences are returned unchanged.
import poolparty as pp
pp.init()
wt = pp.from_seq("AAAA<cre>ATCGATCG</cre>TTTT")
r = pp.rc(wt, region="cre")
r.print_library()
See rc().