Sequence

This module handles individual sequences.

class Sequence(*args)[source]

Handle individual sequences of an MSA object

Depending on input arguments, instances may point to an MSA object or store its own data.

copy()

Returns a copy of the instance that owns its sequence data.

getIndex()

Returns sequence index or None.

getLabel(full=False)

Returns label of the sequence.

getMSA()

Returns MSA instance or None.

getResnums(gaps=False)

Returns list of residue numbers associated with non-gapped seq. When gaps is True, return a list containing the residue numbers with gaps appearing as None. Residue numbers are inferred from the full label. When label does not contain residue number information, indices a range of numbers starting from 1 is returned.

numGaps()

Returns number of gap characters.

numResidues()

Returns the number of alphabet characters.