subsample: Improve default search paths, allow customization - #1918
Merged
Conversation
5 tasks
victorlin
force-pushed
the
victorlin/subsample-filepath-configs
branch
from
October 24, 2025 23:38
ac75919 to
d58a672
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1918 +/- ##
==========================================
+ Coverage 74.17% 74.25% +0.08%
==========================================
Files 82 82
Lines 8984 9052 +68
Branches 1827 1847 +20
==========================================
+ Hits 6664 6722 +58
- Misses 2017 2024 +7
- Partials 303 306 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tsibley
previously requested changes
Oct 29, 2025
tsibley
left a comment
Contributor
There was a problem hiding this comment.
This is pretty close to what I meant when I was describing the approach!
A couple small niggles noted.
victorlin
force-pushed
the
victorlin/subsample-filepath-configs
branch
2 times, most recently
from
October 31, 2025 04:01
0e4f947 to
25c4448
Compare
This makes it easier to add/remove steps.
This will be used in a future commit.
Preparing to use the schema in another function.
Previously, the only search path was implicitly the current working directory. Make this explicit and add an option to search other paths before it. This means the notes in option descriptions mentioning cwd as search path are no longer accurate for augur subsample. Since the descriptions are shared with augur filter which does not allow custom search paths, I figured it'd be best to remove the notes entirely.
This allows more intuitive relative filepaths from the perspective of the config file.
Environment variables can be easier to use than CLI options in some situations.
This can be used by Snakemake workflows to declare input files for rules that call augur subsample.
victorlin
force-pushed
the
victorlin/subsample-filepath-configs
branch
from
November 17, 2025 21:52
25c4448 to
1828dde
Compare
4 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
Previously, the only search path was implicitly the current working directory.
This PR adds another default – the config file's parent directory – and prefers it over cwd. Custom search paths are supported via command line option and environment variable.
Related issue(s)
Notable review threads
str(Path)instead ofPath.as_posix()? yesAUGUR_SEARCH_PATHSin other commands? yesget_referenced_files()andaugur subsample? yesChecklist