-
Notifications
You must be signed in to change notification settings - Fork 16
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
Improve identifying run dirs #460
Improve identifying run dirs #460
Conversation
… remove superfluous .abspath method
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #460 +/- ##
=======================================
Coverage 27.90% 27.90%
=======================================
Files 37 37
Lines 5487 5487
=======================================
Hits 1531 1531
Misses 3956 3956 ☔ View full report in Codecov by Sentry. |
Running interactively on preproc yields:
I.e. looks like it's behaving as expected. |
Ruff CI failure is due to Ruff update, addressed in #461 |
@@ -320,7 +303,7 @@ def get_ss_projects_illumina(run_dir): | |||
proj_tree = Tree() | |||
lane_pattern = re.compile("^([1-8]{1,2})$") | |||
sample_proj_pattern = re.compile("^((P[0-9]{3,5})_[0-9]{3,5})") | |||
run_name = os.path.basename(os.path.abspath(run_dir)) | |||
run_name = os.path.basename(run_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this change is needed, is it just to clean up? I asked chatgpt and the old one has an advantage if there are trailing slashes in the run_dir path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was mostly to clean up yeah. When I tested the code interactively, I found that removing the method made no difference to how it behaved. The input of the method should always be from a glob search, so I figured it would be fairly consistent as well. I can revoke this particular change if you prefer to keep it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes normally, but I believe you can also run it manually and give a run_dir manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Touché
0fc69ca
) | ||
) or (inst_brand == "element" or inst_brand == "ont"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug is in this block, it only skips processing for "archived", causing it to encounter an error when trying to instantiate an ONT run from the "no_backup" dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, and it's fixed by always checking against the ONT_RUN_PATTERN before updating statusdb? 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, now it will only act on run dirs whose name matches the pattern of the instrument type, we've essentially moved from a blacklist to a whitelist approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
e60b055
into
NationalGenomicsInfrastructure:master
No description provided.