Skip to content

Commit e432188

Browse files
authored
Merge pull request #77 from athbaltzis/dev
Fix linting issues with black
2 parents cc885c3 + 1ca198b commit e432188

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bin/check_samplesheet.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ def check_samplesheet(file_in, file_out):
4747
For an example see:
4848
https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv
4949
"""
50-
5150
sequence_mapping_dict = {}
5251
with open(file_in, "r") as fin:
53-
5452
## Check header
5553
MIN_COLS = 2
5654
# TODO nf-core: Update the column names for the input samplesheet
@@ -119,13 +117,11 @@ def check_samplesheet(file_in, file_out):
119117
with open(file_out, "w") as fout:
120118
fout.write(",".join(["sequence", "fasta"]) + "\n")
121119
for sequence in sorted(sequence_mapping_dict.keys()):
122-
123120
## Check that multiple runs of the same sample are of the same datatype
124121
if not all(x[0] == sequence_mapping_dict[sequence][0][0] for x in sequence_mapping_dict[sequence]):
125122
print_error(
126123
"Multiple runs of a sequence must be of the same datatype!", "Sequence: {}".format(sequence)
127124
)
128-
129125
for idx, val in enumerate(sequence_mapping_dict[sequence]):
130126
fout.write(",".join(["{}_T{}".format(sequence, idx + 1)] + val) + "\n")
131127
else:

0 commit comments

Comments
 (0)