From 8a50b91bb73257e856473ffc26db65854cb9fcd4 Mon Sep 17 00:00:00 2001 From: Zewen Kelvin Tuong Date: Thu, 4 May 2023 14:23:49 +1000 Subject: [PATCH] Update _core.py (#268) --- dandelion/utilities/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dandelion/utilities/_core.py b/dandelion/utilities/_core.py index fa2396d71..38c52b37a 100644 --- a/dandelion/utilities/_core.py +++ b/dandelion/utilities/_core.py @@ -1593,7 +1593,7 @@ def retrieve(self, query, retrieve_mode): cols.update({query + "_VJ": np.nan}) elif retrieve_mode == "merge": cols.update( - {query: "|".join(x for x in set(vdj + vj) if present(x))} + {query: "|".join(x for x in (vdj + vj) if present(x))} ) elif retrieve_mode == "split": if len(vdj) > 0: @@ -1947,7 +1947,7 @@ def retrieve_celltype(self, query, retrieve_mode): { query: "|".join( x - for x in set( + for x in ( b_vdj + abt_vdj + gdt_vdj