Region Operations

Region operations tag, replace, and transform specific parts of sequences identified by XML-style region markers. For an introduction to regions and tag syntax, see Sequence Regions.

insert_tags

Add region tags to a sequence by specifying start/stop indices.

remove_tags

Remove region tags, optionally keeping or discarding their contents.

annotate_region

Tag a region by position range with an optional display style.

replace_region

Replace the content of a named region with sequences from a pool.

apply_at_region

Apply a transformation function to the content of a named region.

extract_region

Extract the content of a named region as a new pool.

region_scan

Insert a named region tag at successive positions within a sequence.

region_multiscan

Insert multiple region tags at non-overlapping positions simultaneously.