Source code for immuneML.data_model.receptor.TCABReceptor

from uuid import uuid4

from immuneML.data_model.receptor.Receptor import Receptor
from immuneML.data_model.receptor.receptor_sequence.ReceptorSequence import ReceptorSequence


[docs]class TCABReceptor(Receptor): def __init__(self, alpha: ReceptorSequence = None, beta: ReceptorSequence = None, metadata: dict = None, identifier: str = None): self.alpha = alpha self.beta = beta self.metadata = metadata self.identifier = uuid4().hex if identifier is None else identifier
[docs] def get_chains(self): return ["alpha", "beta"]
[docs] def get_attribute(self, name: str): raise NotImplementedError