File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,8 @@ def check_samplesheet(file_in, file_out):
47
47
For an example see:
48
48
https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv
49
49
"""
50
-
51
50
sequence_mapping_dict = {}
52
51
with open (file_in , "r" ) as fin :
53
-
54
52
## Check header
55
53
MIN_COLS = 2
56
54
# TODO nf-core: Update the column names for the input samplesheet
@@ -119,13 +117,11 @@ def check_samplesheet(file_in, file_out):
119
117
with open (file_out , "w" ) as fout :
120
118
fout .write ("," .join (["sequence" , "fasta" ]) + "\n " )
121
119
for sequence in sorted (sequence_mapping_dict .keys ()):
122
-
123
120
## Check that multiple runs of the same sample are of the same datatype
124
121
if not all (x [0 ] == sequence_mapping_dict [sequence ][0 ][0 ] for x in sequence_mapping_dict [sequence ]):
125
122
print_error (
126
123
"Multiple runs of a sequence must be of the same datatype!" , "Sequence: {}" .format (sequence )
127
124
)
128
-
129
125
for idx , val in enumerate (sequence_mapping_dict [sequence ]):
130
126
fout .write ("," .join (["{}_T{}" .format (sequence , idx + 1 )] + val ) + "\n " )
131
127
else :
You can’t perform that action at this time.
0 commit comments