cadnano.decorators.insertion module

class Insertion(index: int, length: int)

Bases: object

:class:`Insertion`s do affect an applied sequence and do not store a sequence themselves. They are a skip if the length is less than 0

Parameters:
  • index – the index into the StrandSet the Insertion occurs at
  • length – length of Insertion
idx() → int
Returns:the index into the StrandSet the Insertion occurs at
isSkip() → bool
Returns:True is is a skip, ``False ``otherwise
length() → int

This is the length of a sequence that is immutable by the strand

Returns:length of Insertion
setLength(length: int)

Setter for the length

Parameters:length
updateIdx(delta: int)

Increment the index by delta

Parameters:delta – can be negative