Skip to content

Commit

Permalink
Refactor header split
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
davelopez and nsoranzo committed Oct 10, 2024
1 parent 8f6610f commit 422221d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/datatypes/genetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 422221d

Please sign in to comment.