Source code for immuneML.encodings.kmer_frequency.sequence_encoding.SequenceEncodingStrategy

import abc

from immuneML.data_model.receptor.receptor_sequence.ReceptorSequence import ReceptorSequence
from immuneML.encodings.EncoderParams import EncoderParams


[docs] class SequenceEncodingStrategy(metaclass=abc.ABCMeta):
[docs] @staticmethod @abc.abstractmethod def encode_sequence(sequence: ReceptorSequence, params: EncoderParams): pass
[docs] @staticmethod @abc.abstractmethod def get_feature_names(params: EncoderParams): pass