cadnano.decorators.insertion module¶
-
class
Insertion
(index, length)¶ Bases:
object
Insertions 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 (int) – the index into the StrandSet the Insertion occurs at
- length (int) – length of Insertion
-
idx
()¶ Returns: int – the index into the StrandSet the Insertion occurs at
-
isSkip
()¶ Returns: bool – True is is a skip, False otherwise
-
length
()¶ This is the length of a sequence that is immutable by the strand
Returns: int – length of Insertion
-
setLength
(length)¶ Setter for the length
Parameters: length (int) –
-
updateIdx
(delta)¶ Increment the index by delta
Parameters: delta (int) – can be negative