From 422221d9094752e04cfb3b1c3c36765cd6fc9249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B3pez?= <46503462+davelopez@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:13:00 +0200 Subject: [PATCH] Refactor header split Co-authored-by: Nicola Soranzo --- lib/galaxy/datatypes/genetics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/datatypes/genetics.py b/lib/galaxy/datatypes/genetics.py index 3d48649eecbd..1ce24261aebf 100644 --- a/lib/galaxy/datatypes/genetics.py +++ b/lib/galaxy/datatypes/genetics.py @@ -869,8 +869,7 @@ def set_meta(self, dataset: DatasetProtocol, overwrite: bool = True, **kwd) -> N pf = None if pf: header = pf[0].strip() - columns = header.split("\t") # hope is header - columns = [escape(x) for x in columns] + columns = [escape(x) for x in header.split("\t")] # hope is header dataset.metadata.column_names = columns dataset.metadata.columns = len(columns) dataset.peek = "".join(pf[:5])