From 2bf8822c7acfed9e8e6319f51e44594173c6ae75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=AAs=20Mendes?= Date: Tue, 19 Nov 2024 17:21:55 +0000 Subject: [PATCH] force collection_date to be a string (#658) --- tasks/utilities/submission/task_submission.wdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/utilities/submission/task_submission.wdl b/tasks/utilities/submission/task_submission.wdl index ab384c86b..effa28619 100644 --- a/tasks/utilities/submission/task_submission.wdl +++ b/tasks/utilities/submission/task_submission.wdl @@ -56,7 +56,7 @@ task prune_table { # read export table into pandas tablename = "~{table_name}-data.tsv" - table = pd.read_csv(tablename, delimiter='\t', header=0, dtype={"~{table_name}_id": 'str'}) # ensure sample_id is always a string) + table = pd.read_csv(tablename, delimiter='\t', header=0, dtype={"~{table_name}_id": 'str', "collection_date": 'str'}) # ensure sample_id is always a string) # extract the samples for upload from the entire table table = table[table["~{table_name}_id"].isin("~{sep='*' sample_names}".split("*"))]