Skip to content

Design.add_full_crossover and Design.add_half_crossover should check for existing crossovers #231

@dave-doty

Description

@dave-doty

Imagine we have the following design, which has crossovers (which appear horizontal in the web interface) between domains that are consecutive on each helix:

# helix 0 [------+^+------>
# 
# helix 1 <------+^+------]
design = Design(helices=[Helix(100), Helix(100)])
design.draw_strand(0, 0).move(8).move(8)
design.draw_strand(1, 16).move(-8).move(-8)

The following code should raise an exception, because it is trying to add a crossover at an offset where there is already a crossover:

design.add_full_crossover(helix-0, helix2=1, offset=8, forward=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions