skbio.embedding.SequenceEmbedding#
- class skbio.embedding.SequenceEmbedding(embedding, sequence, **kwargs)[source]#
Embedding for a biological sequence.
- Parameters:
- embeddingarray_like
The embedding of the sequence. Row vectors correspond to the latent character coordinates.
- sequencestr, Sequence, or 1D ndarray
Characters representing the sequence itself.
See also
Attributes
embedding
The embedding tensor.
ids
IDs corresponding to each row of the embedding.
sequence
String representation of the underlying sequence.
Built-ins
__eq__
(value, /)Return self==value.
__ge__
(value, /)Return self>=value.
__getstate__
(/)Helper for pickle.
__gt__
(value, /)Return self>value.
__hash__
(/)Return hash(self).
__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__str__
()String representation of the underlying sequence.
Methods
bytes
()Bytes representation of string encoding.