You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.stderr.write(cyan(f"`{col}` must be a column name in barcode csv file.\n"))
46
48
sys.exit(-1)
47
49
50
+
ifKEY_EPIDinreader.fieldnames:
51
+
cols_to_check.append(KEY_EPID)
52
+
48
53
forrowinreader:
49
54
ifrow[KEY_BARCODE] andnotrow[KEY_SAMPLE]:
50
55
continue
56
+
57
+
51
58
ifrow[KEY_BARCODE] inbarcodes:
52
59
barcode=row[KEY_BARCODE]
53
60
sys.stderr.write(cyan(f"`{barcode}` duplicated in barcode csv file. Note: barcodes must be unique.\n"))
54
61
sys.exit(-1)
55
62
ifrow[KEY_SAMPLE] insamples:
56
63
print(cyan(f"Warning: `{row[KEY_SAMPLE]}` sample name provided for multiple barcodes."))
57
-
forspecial_characterin ["|",","," ",";"]:
58
-
ifspecial_characterinrow[KEY_BARCODE]:
59
-
sys.stderr.write(cyan(f"Special character `{special_character}` cannot be used in barcode or sample name. Please remove this character from barcode `{row[KEY_BARCODE]}` and restart.\n"))
60
-
sys.exit(-1)
61
-
elifspecial_characterinrow[KEY_SAMPLE]:
62
-
sys.stderr.write(cyan(f"Special character `{special_character}` cannot be used in barcode or sample name. Please remove this character from sample `{row[KEY_SAMPLE]}` and restart.\n"))
63
-
sys.exit(-1)
64
+
65
+
forcolincols_to_check:
66
+
forspecial_characterin ["|",","," ",";"]:
67
+
ifspecial_characterinrow[col]:
68
+
sys.stderr.write(cyan(f"Special character `{special_character}` cannot be used in {col} field. Please remove this character from `{row[KEY_BARCODE]}` and restart.\n"))
0 commit comments