seqgra.simulator.examplegenerator module

MIT - CSAIL - Gifford Lab - seqgra

Example generator

@author: Konstantin Krismer

class ExampleGenerator[source]

Bases: object

static add_element(example: seqgra.schema.AnnotatedExample, element: str, position: int)seqgra.schema.AnnotatedExample[source]
static add_spatially_constrained_elements(example: seqgra.schema.AnnotatedExample, spacing_constraint: seqgra.model.data.spacingconstraint.SpacingConstraint, element1: str, element2: str, rule_position: str)seqgra.schema.AnnotatedExample[source]
static apply_rule(rule: seqgra.model.data.rule.Rule, example: seqgra.schema.AnnotatedExample)seqgra.schema.AnnotatedExample[source]
static generate_example(conditions: List[seqgra.model.data.condition.Condition], set_name: str, background: seqgra.model.data.background.Background)seqgra.schema.AnnotatedExample[source]
static get_distance(example: seqgra.schema.AnnotatedExample, spacing_constraint: seqgra.model.data.spacingconstraint.SpacingConstraint, element1: str, element2: str, rule_position: str)int[source]
static get_position(rule_position: str, sequence_length, element_length)int[source]