skbio.embedding.SequenceVector#
- class skbio.embedding.SequenceVector(vector, sequence, **kwargs)[source]#
Vector representation for a biological sequence.
- Parameters:
- vector1D or 2D array_like
The vector representation of the sequence. Typically a 1D array. Can also be a 2D array with only one row.
- sequencestr, Sequence, or 1D ndarray
Characters representing the sequence itself.
See also
Attributes
String representation of the underlying sequence.
Attributes (inherited)
The embedding tensor.
IDs corresponding to each row of the embedding.
Vector representation for the biological entity.
Methods (inherited)
Bytes representation of string encoding.
Create a new
SequenceVectorinstance from a file.Write an instance of
SequenceVectorto a file.Special methods (inherited)
__eq__Return self==value.
__ge__Return self>=value.
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
Return str(self).
Details
- sequence#
String representation of the underlying sequence.