Sequence Utilities

Sequence utilities apply deterministic, one-to-one transformations to sequences. Each input sequence produces exactly one output sequence with no internal state. These operations cover reverse complementation, case conversion, display styling, cleanup, slicing, and name prefixing.

rc

Take the reverse complement of a sequence or named region.

Case Operations (upper, lower, swapcase)

Convert sequence case: upper, lower, swapcase.

stylize

Apply a named display style to a sequence or region.

clear_gaps

Remove gap characters (-) from sequences.

clear_annotation

Strip region tags while keeping the underlying sequence.

slice_seq

Extract a subsequence by index range, named region, or both.

add_prefix

Add a label prefix to sequence names without modifying sequences.