Skip to content

Commit

Permalink
We don't want to repeat the samples, only need one output
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Jan 24, 2024
1 parent 13ca6b7 commit 3da2048
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bin/check_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 3da2048

Please sign in to comment.