Package schrodinger :: Package application :: Package msv :: Module test_helpers :: Class AlignmentInfo
[hide private]
[frames] | no frames]

Class AlignmentInfo

object --+
         |
        AlignmentInfo

Instance Methods [hide private]
 
__init__(self, seqs=(), locked_columns=(), potential_reordering=None)
An object that can be used in alignment tests
 
__repr__(self)
Not a strict repr, but rather a comprehensive summary of the alignment info object

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, seqs=(), locked_columns=(), potential_reordering=None)
(Constructor)

 

An object that can be used in alignment tests

This object can be used to create an alignment, along with fixtures adapted to the alignment that can be used in testing it. We use this object so that different tests can create different kinds of alignments (regular kinds and undoable alignments).

Parameters:
  • seqs - List of sequences to be used in constructing an alignment
  • locked_columns (list of int) - A list of indices of locked columns
  • potential_reordering (list of int) - A reordering of sequences in the alignment suitable for this alignment
  • seq (list)
Overrides: object.__init__

__repr__(self)
(Representation operator)

 

Not a strict repr, but rather a comprehensive summary of the alignment info object

This is useful for hypothesis error messages. The Alignment repr can be copied and pasted into a repl for interactive debugging.

Overrides: object.__repr__