From 49686483bcb4dc1b8b693fb3bd6e8a545fac2725 Mon Sep 17 00:00:00 2001 From: MokaGuys Date: Fri, 20 Oct 2023 13:03:30 +0100 Subject: [PATCH] corrected samplesheet paths for TSO samplesheet splitting function --- upload_and_setoff_workflows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/upload_and_setoff_workflows.py b/upload_and_setoff_workflows.py index e8ca36d5..e1b7a320 100644 --- a/upload_and_setoff_workflows.py +++ b/upload_and_setoff_workflows.py @@ -644,7 +644,7 @@ def split_TSO500_samplesheet(self): returns: list of samplesheet names """ # samplesheet in the runfolder - samplesheet_file = os.path.join(self.runfolder_obj.runfolderpath, self.runfolder_obj.runfolder_samplesheet_name) + samplesheet_file = self.runfolder_obj.runfolder_samplesheet_path samplesheet_header = [] samples = [] @@ -685,7 +685,9 @@ def split_TSO500_samplesheet(self): # Write batches to separate files named "PartXofY", and add samplesheet to list samplesheet_list = [] number_of_batches = len(batches) - samplesheet_base_name = samplesheet_file.split(".csv")[0] + #capture path for samplesheet in runfolder + runfolder_samplesheet_file = samplesheet_file = os.path.join(self.runfolder_obj.runfolderpath, self.runfolder_obj.runfolder_samplesheet_name) + samplesheet_base_name = runfolder_samplesheet_file.split(".csv")[0] for samplesheet_count, batch in enumerate(batches, start=1): #capture samplesheet file path to write samplesheet paths to the runfolder samplesheet_filepath = "%sPart%sof%s.csv" % (samplesheet_base_name,samplesheet_count,number_of_batches)