rstoolbox.components.Selection.is_shifted

Selection.is_shifted()

Evaluate if Selection is shifted.

Is the selection is shifted, it will need to be assigned to a seqID.

Returns:bool

Example

In [1]: from rstoolbox.components import Selection
   ...: ss = Selection([3, 4, 5, 13, 14, 15, 21, 25])
   ...: ss.is_shifted()
   ...: 
Out[1]: False

In [2]: ss.shift("A", 3).is_shifted()
Out[2]: True