-
Notifications
You must be signed in to change notification settings - Fork 128
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
Update help docs for augur curate format-dates #1651
Comments
Hi @anna-parker, sorry if the documentation is not clear here! You will need to provide the If you update the command to include
Please let us know if this doesn't work for you and we can investigate further. |
Thanks @joverlee521 for explaining where the issue lies. I hope you don't mind if I reopen this issue as while not a bug, it's a documentation issue that hasn't yet been resolved afaict: The first line of augur curate docs makes users believe that 2023 -> 2023-XX-XX works by default: https://docs.nextstrain.org/projects/augur/en/stable/usage/cli/curate/format-dates.html Looking further down the docs, it's strange that So given how it's documented, one should either remove the defaults so that it's actually required, or move it to optional, or change the defaults. |
Ah, I see that now. Is it clearer if updated to
I missed this when I added the default values in #1501. I'll move
The |
Thanks @joverlee521! Those edits are great! What I don't yet understand is what format-dates does if run with default values. Does it error if any of the dates are not one of the expected default formats? |
If only run with default values it will just be no-op and will error if the dates do not match the default formats. Hmm, maybe it would be better to just mark the |
@joverlee521 thanks for looking into this! I think the screenshot you provided already makes this much clearer |
Current Behavior
Hi! I am running
augur curate format-dates
, but augur is unable to format any of the dates.Expected behavior
I would expect augur to format the dates as per documentation:
1987
should become1987-XX-XX
, '1999-05' should become1999-05-XX
.How to reproduce
Steps to reproduce the current behavior:
example_output.tsv
both dates have be formatted asXXXX-XX-XX
.Your environment: if running Nextstrain locally
The text was updated successfully, but these errors were encountered: