Skip to content

Commit

Permalink
sort out miseq headers with zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
nickp60 committed Sep 27, 2023
1 parent 1ea9be4 commit 4de1e48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions fcid/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@


def get_tech_type(flowcell, d):
flowcell = flowcell.replace("000000000-", "")
for pattern, value in d:
if re.search(pattern, flowcell):
return value
Expand Down
3 changes: 3 additions & 0 deletions fcid/test_fcid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ def test_by_machine(capsys):

def test_by_flowcell():
assert get_tech_type("22C37GLT3", FCIDs)[0] == ["NovaSeq X"]

def test_by_flowcell_weird_zeros():
assert get_tech_type("000000000-BLW8J", FCIDs)[0] == ["MiSeq"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "fcid"
version = "0.0.3"
version = "0.0.4"
authors = [
{name = "Nick Waters", email = "nickp60@gmail.com"},
]
Expand Down

0 comments on commit 4de1e48

Please sign in to comment.