Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broaden anglerfish run search #304

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Scilifelab_epps Version Log

## 20240126.1

Discover latest anglerfish run even if embedded in subdir of run dir

## 20240122.1

Enable copy_field_art2samp to copy values from Aggregate QC steps
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse_anglerfish_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def find_latest_flowcell_run(currentStep: Process) -> str:


def find_latest_anglerfish_run(latest_flowcell_run_path: str) -> str:
anglerfish_query = f"{latest_flowcell_run_path}/*anglerfish_run*"
anglerfish_query = f"{latest_flowcell_run_path}/**/anglerfish_run*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I belive the double asterisk is sort of a special feature of some shells, have you tested this on the LIMS server?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it now

In [6]: p="repos/**/scripts"

In [7]: from glob import glob

In [8]: pwd
Out[8]: '/opt/gls/clarity/users/glsai'

In [9]: glob(p)
Out[9]: ['repos/scilifelab_epps/scripts']

Seems to work :)

anglerfish_glob = glob.glob(anglerfish_query)

assert (
Expand Down
Loading