@@ -106,7 +106,7 @@ def get_adapters(file_lines):
106
106
else :
107
107
adapter2 = adapter_code
108
108
break
109
- data_found = re .search ("^\[Data]" , line )
109
+ data_found = re .search (r "^\[Data]" , line )
110
110
if data_found :
111
111
break
112
112
@@ -205,7 +205,7 @@ def get_reads(file_lines):
205
205
continue
206
206
if "[Settings]" in line :
207
207
break
208
- if read_found and re .search ("^\w+" , line ):
208
+ if read_found and re .search (r "^\w+" , line ):
209
209
reads .append (line .split ("," )[0 ])
210
210
return reads
211
211
@@ -392,7 +392,7 @@ def get_projects_in_run(in_file: str) -> dict:
392
392
continue
393
393
else :
394
394
# ignore the empty lines separated by commas
395
- valid_line = re .search ("^\w+" , line )
395
+ valid_line = re .search (r "^\w+" , line )
396
396
if not valid_line :
397
397
continue
398
398
# store the project name and the user name (Description) inside projects dict
@@ -442,7 +442,7 @@ def get_index_library_name(in_file):
442
442
def update_library_kit_field (library_file_name , library_kit_name , library_name ):
443
443
# result_directory='documents/wetlab/BaseSpaceMigrationFiles/'
444
444
timestr = time .strftime ("%Y%m%d-%H%M%S" )
445
- tmp = re .search ("(.*)\d{8}-\d+.*\.csv" , library_file_name )
445
+ tmp = re .search (r "(.*)\d{8}-\d+.*\.csv" , library_file_name )
446
446
absolute_path = str (settings .BASE_DIR + "/" )
447
447
out_file = str (
448
448
absolute_path
@@ -517,7 +517,7 @@ def create_unique_sample_id_values(infile, index_file):
517
517
continue
518
518
if found_sample_line :
519
519
# discard the empty lines or the lines that contains empty lines separated by comma
520
- if line == "\n " or re .search ("^\W" , line ):
520
+ if line == "\n " or re .search (r "^\W" , line ):
521
521
continue
522
522
523
523
data_line = line .split ("," )
@@ -592,7 +592,7 @@ def set_user_names_in_sample_sheet(in_file, user_names):
592
592
continue
593
593
if found_sample_line :
594
594
# discard the empty lines or the lines that contains empty lines separated by comma
595
- if line == "\n " or re .search ("^\W" , line ):
595
+ if line == "\n " or re .search (r "^\W" , line ):
596
596
continue
597
597
598
598
data_line = line .split ("," )
0 commit comments