Source code for immuneML.data_model.receptor.BCReceptor

from uuid import uuid4

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


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