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

Move hardcoded parameters to the config file #48

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

j23414
Copy link
Contributor

@j23414 j23414 commented Mar 6, 2024

Description of proposed changes

Updates the phylogenetic workflow to set hardcoded parameters through the default config YAML. This will make it easier for users to override default values.

Related issue(s)

Checklist

  • Checks pass

@j23414 j23414 linked an issue Mar 6, 2024 that may be closed by this pull request
@j23414
Copy link
Contributor Author

j23414 commented Mar 6, 2024

Clarification question, did we also want to move hardcoded flags (e.g. --treetime and --date-confidence ) into a config YAML?

--timetree \
--coalescent {params.coalescent} \
--date-confidence \
--date-inference {params.date_inference} \
--clock-filter-iqd {params.clock_filter_iqd}

Or perhaps put them into one combined refine args config?

refine:
  coalescent: "opt"
  date_inference: "marginal"
  clock_filter_iqd: 4
  args: "--treetime --date-confidence"

Copy link
Contributor

@joverlee521 joverlee521 left a comment

Choose a reason for hiding this comment

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

Thanks for following up here, changes look good to me!

Clarification question, did we also want to move hardcoded flags (e.g. --treetime and --date-confidence ) into a config YAML?

I don't think so. The current refine config parameters only make sense when used with the --treetime flag.

In general, I don't think we want to go down the road of making every flag parameterized. That was just unsustainable in the ncov workflow...

@j23414 j23414 merged commit fbf123a into main Mar 8, 2024
32 checks passed
@j23414 j23414 deleted the 35-phylo-move-hardcoded-params-to-config-yaml branch March 8, 2024 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

phylo: Move hardcoded params to config YAML
2 participants