skbio.alignment.Alignment.__repr__

Alignment.__repr__()[source]

The repr method.

Returns:

str

Returns a string representation of the object.

Notes

String representation contains the class name, the number of sequences in the SequenceCollection (n), and the mean and standard deviation sequence length.

Examples

>>> from skbio.alignment import SequenceCollection
>>> from skbio.sequence import DNA
>>> sequences = [DNA('ACCGT', id="seq1"),
...              DNA('AACCGGT', id="seq2")]
>>> s1 = SequenceCollection(sequences)
>>> print(repr(s1))
<SequenceCollection: n=2; mean +/- std length=6.00 +/- 1.00>