update for bakeup
This commit is contained in:
@ -151,7 +151,8 @@ def read_deletedBarcode_file(filePth):
|
||||
dict, barcode_list, similarity_list = {}, [], []
|
||||
|
||||
clean_lines = [line.strip().replace("'", '').replace('"', '') for line in lines]
|
||||
for line in clean_lines:
|
||||
|
||||
for i, line in enumerate(clean_lines):
|
||||
stripped_line = line.strip()
|
||||
if not stripped_line:
|
||||
if len(barcode_list): dict['barcode'] = barcode_list
|
||||
@ -163,8 +164,16 @@ def read_deletedBarcode_file(filePth):
|
||||
continue
|
||||
|
||||
# print(line)
|
||||
label = line.split(':')[0]
|
||||
value = line.split(':')[1]
|
||||
try:
|
||||
label = line.split(':')[0]
|
||||
value = line.split(':')[1]
|
||||
except Exception as e:
|
||||
print(f'Error: {e}')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if label == 'SeqDir':
|
||||
dict['SeqDir'] = value
|
||||
if label == 'Deleted':
|
||||
|
Reference in New Issue
Block a user