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

[augur ancestral] input VCF alignment is often overwritten #1343

Closed
jameshadfield opened this issue Nov 29, 2023 · 0 comments · Fixed by #1344
Closed

[augur ancestral] input VCF alignment is often overwritten #1343

jameshadfield opened this issue Nov 29, 2023 · 0 comments · Fixed by #1344
Assignees
Labels
bug Something isn't working VCF

Comments

@jameshadfield
Copy link
Member

Current Behavior

Providing augur ancestral with a VCF input (--alignment foo.vcf) and not specifying a output VCF will result in the input VCF being overwritten. That's due to this line, which replaces the input alignment's suffix with 'vcf':

vcf_fname = '.'.join(args.alignment.split('.')[:-1]) + '.vcf'

Expected behavior

We shouldn't be producing files unless requested to do so. I suggest only exporting a VCF if --output-vcf is provided.

Your environment: if running Nextstrain locally

augur 23.1.1

@jameshadfield jameshadfield added the bug Something isn't working label Nov 29, 2023
@jameshadfield jameshadfield self-assigned this Nov 29, 2023
jameshadfield added a commit that referenced this issue Nov 29, 2023
This is consistent with augur's general behaviour of "request a file for
it to be produced". Moreover, the previous code would ~always result in
the VCF input file being overwritten.

This is potentially a backwards compatible change. The number of users
expected to be affected is minimal (perhaps zero).

Closes #1343.
jameshadfield added a commit that referenced this issue Dec 4, 2023
This is consistent with augur's general behaviour of "request a file for
it to be produced". Moreover, the previous code would ~always result in
the VCF input file being overwritten.

This is potentially a backwards compatible change. The number of users
expected to be affected is minimal (perhaps zero).

Closes #1343.
jameshadfield added a commit that referenced this issue Dec 4, 2023
This is consistent with augur's general behaviour of "request a file for
it to be produced". Moreover, the previous code would ~always result in
the VCF input file being overwritten.

This is potentially a backwards compatible change. The number of users
expected to be affected is minimal (perhaps zero).

Closes #1343.
jameshadfield added a commit that referenced this issue Dec 7, 2023
This is consistent with augur's general behaviour of "request a file for
it to be produced". Moreover, the previous code would ~always result in
the VCF input file being overwritten.

This is potentially a backwards compatible change. The number of users
expected to be affected is minimal (perhaps zero).

Closes #1343.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VCF
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant