Mutator¶
Module to mutate sequences based on a variants list.
- Assumptions for which no check is performed:
Only
deletion insertion
operations.Only exact locations, i.e., no uncertainties such as 10+?.
Locations are zero-based right-open with
start > end
.There is no overlapping between variants locations.
- Notes:
If any of the above is not met, the result will be bogus.
There can be empty inserted lists.
- mutalyzer_mutator.mutator.mutate(sequences, variants)¶
Mutate the reference sequence under
sequences["reference"]
according to the provided variants operations.- Parameters
sequences (dict) – Sequences dictionary.
variants (list) – Operations list.
- Returns
Mutated sequence.
- Return type
str