Source code for immuneML.data_model.receptor.Receptor

import abc
import copy
from uuid import uuid4

from immuneML.data_model.DatasetItem import DatasetItem


[docs]class Receptor(DatasetItem):
[docs] @abc.abstractmethod def get_chains(self): pass
[docs] def clone(self): copied_element = copy.deepcopy(self) copied_element.identifier = str(uuid4().hex) return copied_element
[docs] def get_chain(self, chain: str): return getattr(self, chain)