def transform_outgoing(self,son,collection): for (key,value) in son.items(): if isinstance(value,dict): if "__SeqRecord__" in value and value["__SeqRecord__"]: son[key] = ImmuneChain(complicateSeqRecord(value)) else: son[key] = self.transform_outgoing(value,collection) return son
def transform_outgoing(self, son, collection): for (key, value) in son.items(): if isinstance(value, dict): if "__SeqRecord__" in value and value["__SeqRecord__"]: son[key] = ImmuneChain(complicateSeqRecord(value)) else: son[key] = self.transform_outgoing(value, collection) return son
def decode_document(document): assert document["__SeqRecord__"] return ImmuneChain(complicateSeqRecord(document))
def decode_document(document): assert document["__SeqRecord__"] return ImmuneChain(complicateSeqRecord(document))