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

Sample reordering of annotation file #1785

Closed
pd3 opened this issue Sep 1, 2022 · 0 comments
Closed

Sample reordering of annotation file #1785

pd3 opened this issue Sep 1, 2022 · 0 comments

Comments

@pd3
Copy link
Member

pd3 commented Sep 1, 2022

As mentioned in #1784 (comment), currently it is not possible to override the order of VCF sample names with -s/-S. Ideally these two commands would give the following outputs:

$ bcftools annotate file.vcf -a annots.tab.gz  -c CHROM,POS,FMT/TEST -s smpl1,smpl2 | bcftools query -f'[ %TEST]\n'
1 2

$ bcftools annotate file.vcf -a annots.tab.gz  -c CHROM,POS,FMT/TEST -s smpl2,smpl1 | bcftools query -f'[ %TEST]\n'
2 1
@pd3 pd3 added the enhancement label Sep 1, 2022
@pd3 pd3 closed this as completed in ddf37e1 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant