Skip to content

Commit

Permalink
fix: extend index read parsing in sample sheet api
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Routsong committed Dec 12, 2023
1 parent 981f80b commit 83bdaf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ logs
.snakemake
site
output
.tests/dry_run_out/*
6 changes: 4 additions & 2 deletions scripts/samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ def process_v1_reads_section(self, section):
for i, line in enumerate(section, start=1):
if line.split(',')[0].isnumeric() and i == 1:
r1 = int(line.split(',')[0])
if line.split(',')[0].isnumeric() and i == 2:
r2 = int(line.split(',')[0])
elif line.split(',')[0].isnumeric() and i == 2:
r2 = int(line.split(',')[0])
else:
self.process_simple_section([line])
if r1:
setattr(self, 'Read01', r1)
if r2:
Expand Down

0 comments on commit 83bdaf5

Please sign in to comment.