-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move hardcode filter query into configuration files #273
Comments
Even simpler: check for presence of that column and make the filter dependent on whether it's present or not. I'd prefer automatic stuff over configure. Also, people should in general just fork things and make the changes they want themselves. |
A workaround is to use the The workflow will merge in the private data after the filter rule so the private data bypasses the QC filters and only go through subsampling. |
Sure, automatic stuff can be nice. It can also be the cause of subtle problems. For example, if the column name changes in the TSV then the filter suddenly and silently fails to apply instead of raising an error. Explicit vs. implicit is a delicate tradeoff and is highly context dependent.
What's easy for your is not always easy for others. Copying a repo and making a small change is certainly within the grasp of most folks, but maintaining that fork over time while taking updates from us is not a trivial process for most folks. |
Description
The following hardcoded filter parameter appears at the start of the phylogenetic workflow:
mpox/phylogenetic/rules/prepare_sequences.smk
Line 85 in 2ce0d92
When the user's metadata does not have the two columns referenced in that query (as happens when analyzing data from GISAID, for example),
augur filter
produces the following output:Although that output comes across as an
augur
bug (that a warning is also an error), the proximal issue is that the workflow hardcodes parameters that the user cannot override without changing the workflow itself.Proposed solution
I suggest moving the query string into the config files for the various workflows, specifically moving the hardcoded query into the top-level
filter
section of each config file (e.g.,defaults/mpxv/config.yaml
). Then users who want to analyze data without the fields referenced in that query can create their own config file.The text was updated successfully, but these errors were encountered: