Package schrodinger :: Package application :: Package msv :: Package domain :: Module alignment :: Class _Region
[hide private]
[frames] | no frames]

Class _Region

object --+
         |
        _Region

Utility class to store information about locked or unlocked regions of an alignment

Instance Methods [hide private]
 
__init__(self, start, end)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__contains__(self, value)
Whether the specified alignment-relative index falls inside the subalignment
list
adjustIndices(self, indices)
Takes a list of lists of indices relative to the alignment and return a list of only those indices matching the subalignment, adjusted to match indices internal to the subalignment.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start, end)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • start (int) - The start index of the subalignment in the larger alignment
  • start (int) - The end index of the subalignment in the larger alignment
Overrides: object.__init__

__contains__(self, value)
(In operator)

 

Whether the specified alignment-relative index falls inside the subalignment

Parameters:
  • value - An index relative the entire alignment @param int

adjustIndices(self, indices)

 

Takes a list of lists of indices relative to the alignment and return a list of only those indices matching the subalignment, adjusted to match indices internal to the subalignment.

Parameters:
  • indices - a list of lists of indices
Returns: list
A list of lists of indices, adjusted for the region