From 3da20487d11fa888bcc1e6c122f9ae760e52a2ea Mon Sep 17 00:00:00 2001 From: Chris Fields Date: Wed, 24 Jan 2024 16:04:04 -0600 Subject: [PATCH] We don't want to repeat the samples, only need one output --- bin/check_samplesheet.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/bin/check_samplesheet.py b/bin/check_samplesheet.py index 73442e3..d6b04a8 100755 --- a/bin/check_samplesheet.py +++ b/bin/check_samplesheet.py @@ -103,16 +103,15 @@ def check_samplesheet(FileIn, FileOut): fout = open(FileOut, 'w') fout.write( ','.join(['sample', 'single_end', 'fastq_1', 'fastq_2']) + '\n') - for sample in sorted(sampleRunDict.keys()): - # Check that multiple runs of the same sample are of the same datatype - # if not all(x[0] == sampleRunDict[sample][0][0] for x in sampleRunDict[sample]): - # print_error( - # "Multiple runs of a sample must be of the same datatype", "Sample: {}".format(sample)) + # Check that multiple runs of the same sample are of the same datatype + # if not all(x[0] == sampleRunDict[sample][0][0] for x in sampleRunDict[sample]): + # print_error( + # "Multiple runs of a sample must be of the same datatype", "Sample: {}".format(sample)) - for idx, val in sampleRunDict.items(): - fout.write( - ','.join([idx] + val ) + '\n') + for idx, val in sampleRunDict.items(): + fout.write( + ','.join([idx] + val ) + '\n') fout.close()