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

Conversation

kedhammar
Copy link

No description provided.

@kedhammar
Copy link
Author

related SciLifeLab/TACA#409

@kedhammar kedhammar changed the title roaden anglerfish run search Broaden anglerfish run search Jan 26, 2024
@@ -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 :)

Copy link
Member

@alneberg alneberg left a comment

Choose a reason for hiding this comment

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

Looks good!

@kedhammar kedhammar merged commit 8c2657e into SciLifeLab:master Jan 30, 2024
8 checks passed
@kedhammar kedhammar deleted the broaden-anglerfish-run-search branch January 30, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants