-
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
Ref Prefixes #284
Comments
What version of bcftools are you using? There was a fix in 1.2 to ignore uppercase/lowercase differences in the REF column when merging events (see #157). |
Latest version as far as I know.
|
Looking at this more closely, I see you are merging gVCFs. Support for this is limited at the moment. @pd3 has worked on this in his experimental branch, but not ready for the main release yet. However, I can't reproduce this with the current develop bcftools nor with 1.2. Making 3 VCFs with your example records and merging with bcftools merge gives me this result:
The two gVCF blocks are not merged, but that is to be expected with what we currently support. Perhaps your error is caused by something else? Can you send example VCFs (email address on my profile page)? |
This should be fixed on develop now. Please reopen if not. |
This is fixed for this case. Thanks! |
Hi there, I installed the latest github version (1.2-157) and attempted to do a bcftools merge on VCF files. I'm getting: The REF prefixes differ: T vs C (1,1) That file contains: Other files I'm attempting to merge with: Why is it failing in a no-call region? |
The error message suggests that the problem is at position Y:195. Can you show what is there? A small test case would be very helpful. |
Hi there, My error message includes the information that's at that position. It's a Thanks, On Tue, Oct 20, 2015 at 12:51 AM, pd3 notifications@github.com wrote:
|
I've made a bunch of VCF files with the records you have above: https://gist.github.com/mcshane/2416a548a5c23f4d5b4f (for local people, they are here: ~sm15/dev/bcftools-main/284/*.vcf.gz) However I don't get your error message. The command works fine, although the END tag is the tag in the first VCF file (could use the |
Hi Shane, I went to make you some example VCFs, which are a slightly different error than above: The REF prefixes differ: G vs A (1,1) I think it's actually failing to merge on chromosome M. So I think it's proper to throw an error because the chrM REF alleles are different (A versus G), but I don't know why it thinks they're on chrY instead of chrM. https://gist.github.com/denisemauldin/cfd12e9ad6a34040a58c These VCF files have M before X and Y because I ran vcf-sort -c on them and that's how they came out. I wanted to make sure they all had a standard sort order. If I create files with X, Y and M, merge fails. If I create files with X, Y and 22, merge works. If I create files with X and Y, merge works. So it's only if I include M that the merge fails. |
The incorrect chromosome was caused by a small error in error reporting. This part is fixed by the commit b1f04d6. |
Thanks for the quick commit Petr |
I'm getting the following error:
The REF prefixes differ: c vs C (1,1)
Failed to merge alleles at chrX:60001
This seems to say that the reference is 'c'?
My files are:
chrX 60001 . C . 0.00 LowGQX END=60008;BLOCKAVG_min30p3a GT:GQX:DP:DPF 0/0:10:4:0
chrX 60001 . C . 0.00 LowGQX . GT:GQX:DP:DPF 0/0:7:3:0
and a third file that is LowGQX through that region:
chrX 1 . N . 0.00 LowGQX END=60028;BLOCKAVG_min30p3a GT:GQX:DP:DPF .:.:0:0
How do I fix this error? I have 674 files that have this error on chromosome X, mostly at position 60001, but also at other positions (2699521, 154931044)
The text was updated successfully, but these errors were encountered: