Skip to content

Commit

Permalink
corrected samplesheet paths for TSO samplesheet splitting function
Browse files Browse the repository at this point in the history
  • Loading branch information
mokaguys committed Oct 20, 2023
1 parent 58e0705 commit 4968648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions upload_and_setoff_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4968648

Please sign in to comment.