From 5e1539b463e889e8afec09537506b0a3c113eaa2 Mon Sep 17 00:00:00 2001 From: "Anna (Anya) Parker" <50943381+anna-parker@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:01:05 +0100 Subject: [PATCH] Make list a set --- ingest/scripts/filter_out_depositions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingest/scripts/filter_out_depositions.py b/ingest/scripts/filter_out_depositions.py index cb5523098..b8c49f643 100644 --- a/ingest/scripts/filter_out_depositions.py +++ b/ingest/scripts/filter_out_depositions.py @@ -72,7 +72,7 @@ def filter_out_depositions( df = pd.read_csv(input_metadata_tsv, sep="\t", dtype=str, keep_default_na=False) original_count = len(df) with open(exclude_insdc_accessions, encoding="utf-8") as f: - loculus_insdc_accessions = [line.strip().split(".")[0] for line in f] # Remove version info + loculus_insdc_accessions: set = {line.strip().split(".")[0] for line in f} # Remove version with open(exclude_biosample_accessions, encoding="utf-8") as f: loculus_biosample_accessions = [line.strip() for line in f]