skbio.core.sequence.RNASequence.gap_vector

RNASequence.gap_vector()[source]

Return list indicating positions containing gaps

Returns:

list of booleans

The list will be of length len(self), and a position will contain True if the character at that position in the BiologicalSequence is in self.gap_alphabet, and False otherwise.

See also

gap_maps

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('..ACG--TT-')
>>> s.gap_vector()
[True, True, False, False, False, True, True, False, False, True]