cadnano.part.refresholigoscmd module

class RefreshOligosCommand(part)

Bases: cadnano.undocommand.UndoCommand

RefreshOligosCommand is a post-processing step for AutoStaple.

Normally when an xover is created, all strands in the 3’ direction are assigned the oligo of the 5’ strand. This becomes very expensive during autoStaple, because the Nth xover requires updating up to N-1 strands.

Hence, we disable oligo assignment during the xover creation step, and then do it all in one pass at the end with this command.

This command is meant for non-undoable steps, like file-io.

redo()
undo()

Doesn’t reassign