from uuid import uuid4
from immuneML.data_model.receptor.Receptor import Receptor
from immuneML.data_model.receptor.receptor_sequence.ReceptorSequence import ReceptorSequence
[docs]class TCGDReceptor(Receptor):
def __init__(self, gamma: ReceptorSequence = None, delta: ReceptorSequence = None, metadata: dict = None, identifier: str = None):
self.gamma = gamma
self.delta = delta
self.metadata = metadata
self.identifier = identifier if identifier is not None else uuid4().hex
[docs] def get_chains(self):
return ["gamma", "delta"]
[docs] def get_attribute(self, name: str):
raise NotImplementedError