-
Notifications
You must be signed in to change notification settings - Fork 242
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
gvcf2vcf not filling in REF allele correctly #243
Comments
Nice catch. There is a |
* when filling in gvcf reference blocks need the samtools faidx indexed reference fasta to fill in the REF allele for each POS. reuse the `--fasta-ref` option already used by `--tsv2vcf` * updated the test and test files to use the new option * add new option to the man page Fixes samtools#243
* when filling in gvcf reference blocks need the samtools faidx indexed reference fasta to fill in the REF allele for each POS. reuse the `--fasta-ref` option already used by `--tsv2vcf` * updated the test and test files to use the new option * add new option to the man page Fixes samtools#243
* when filling in gvcf reference blocks need the samtools faidx indexed reference fasta to fill in the REF allele for each POS. reuse the `--fasta-ref` option already used by `--tsv2vcf` * updated the test and test files to use the new option * add new option to the man page Fixes samtools#243
Hello, I just found out that this is fixed with uncompressed and compressed vcf output. If I use -Ou or -Ob, the REF allele is still copied from the beginning of the block. |
The issue ryhui indicated is still a problem. The workaround is to write to VCF rather than BCF. |
The command `convert --gvcf2vcf` was not filling the REF allele when BCF was output because VCF API was not used, the alleles were rewritten directly. That works for VCF, but not BCF output. Fixes #243, finally
The BCF output is now fixed, finally. Thanks for reporting the bug, better to open a new issue next time, commenting on closed issues gets easily overlooked. |
When fixing #242 noticed that
gvcf2vcf
is just copying the REF allele from the beginning of the block. Command needs to take a reference fasta as input to fill in REF correctly.The text was updated successfully, but these errors were encountered: