skbio.alignment.Alignment.ids

Alignment.ids()[source]

Returns the BiologicalSequence ids

Returns:

list

The ordered list of ids for the skbio.sequence.BiologicalSequence objects in the SequenceCollection.

Examples

>>> from skbio.alignment import SequenceCollection
>>> from skbio.sequence import DNA
>>> sequences = [DNA('A--CCGT.', id="seq1"),
...              DNA('.AACCG-GT.', id="seq2")]
>>> s1 = SequenceCollection(sequences)
>>> print(s1.ids())
['seq1', 'seq2']