def __init__(self, seq, variable_mods=None, static_mods=None, used_scenarios=None, parse_mod_position=True, mod_position_dict=None, ignore_position=None):
    '\n        Generator for creating modified sequences.\n        :type used_scenarios: set\n        :type static_mods: List[Modification]\n        :type variable_mods: List[Modification]\n        :type seq: str\n        '
    self.seq = seq
    if static_mods:
        self.static_mods = static_mods
        self.static_map = ModificationMap(seq, static_mods, parse_position=parse_mod_position, mod_position_dict=mod_position_dict)
        self.static_mod_position_dict = self.static_mod_generate()
    else:
        self.static_mod_position_dict = {}
    if ignore_position:
        self.ignore_position = ignore_position
    else:
        self.ignore_position = set()
    for i in self.static_mod_position_dict:
        self.ignore_position.add(i)
    if variable_mods:
        self.variable_mods = variable_mods
        if self.static_mod_position_dict:
            self.variable_map = ModificationMap(seq, variable_mods, ignore_positions=self.ignore_position, parse_position=parse_mod_position, mod_position_dict=mod_position_dict)
        else:
            self.variable_map = ModificationMap(seq, variable_mods)
        self.variable_mod_number = len(variable_mods)
    else:
        self.variable_mods = None
    self.variable_map_scenarios = {}
    if used_scenarios:
        self.used_scenarios_set = used_scenarios
    else:
        self.used_scenarios_set = set()
Generator for creating modified sequences.
:type used_scenarios: set
:type static_mods: List[Modification]
:type variable_mods: List[Modification]
:type seq: str
def __init__(self, seq, variable_mods=None, static_mods=None, used_scenarios=None, parse_mod_position=True, mod_position_dict=None, ignore_position=None):
    '\n        Generator for creating modified sequences.\n        :type used_scenarios: set\n        :type static_mods: List[Modification]\n        :type variable_mods: List[Modification]\n        :type seq: str\n        '
    self.seq = seq
    if static_mods:
        self.static_mods = static_mods
        self.static_map = ModificationMap(seq, static_mods, parse_position=parse_mod_position, mod_position_dict=mod_position_dict)
        self.static_mod_position_dict = self.static_mod_generate()
    else:
        self.static_mod_position_dict = {}
    if ignore_position:
        self.ignore_position = ignore_position
    else:
        self.ignore_position = set()
    for i in self.static_mod_position_dict:
        self.ignore_position.add(i)
    if variable_mods:
        self.variable_mods = variable_mods
        if self.static_mod_position_dict:
            self.variable_map = ModificationMap(seq, variable_mods, ignore_positions=self.ignore_position, parse_position=parse_mod_position, mod_position_dict=mod_position_dict)
        else:
            self.variable_map = ModificationMap(seq, variable_mods)
        self.variable_mod_number = len(variable_mods)
    else:
        self.variable_mods = None
    self.variable_map_scenarios = {}
    if used_scenarios:
        self.used_scenarios_set = used_scenarios
    else:
        self.used_scenarios_set = set()