Skip to content

Commit

Permalink
Update cellranger_multi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Dec 30, 2024
1 parent ed5e84d commit 0c91752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cellranger_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def check_file_type(file_path):
try:
workbook = openpyxl.load_workbook(file_path, read_only=True)
sheet = workbook.active
first_row = [cell.value for cell in next(sheet.iter_rows(max_row=1))]
first_row = [str(cell.value).strip() for cell in next(sheet.iter_rows(max_row=1)) if cell.value is not None]
# Check for "cell hashing" or "feature barcoding"
if any("Cell Hashing" in cell for cell in first_row):
return "ch"
Expand All @@ -474,7 +474,7 @@ def check_file_type(file_path):
else:
return None
except Exception as e:
print(f"An error occurred: {e}")
print(f"An error occurred: {e} while processing file {file_path}")


# TODO check whether a project set is complete to launch pipeline
Expand Down

0 comments on commit 0c91752

Please sign in to comment.