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

verifyBamID can't handle missing trailing fields of sample #13

Open
matmu opened this issue Feb 4, 2019 · 3 comments
Open

verifyBamID can't handle missing trailing fields of sample #13

matmu opened this issue Feb 4, 2019 · 3 comments

Comments

@matmu
Copy link

matmu commented Feb 4, 2019

I just analyzed a VCF file created with GATK 3.8 pipeline and got the following error:

terminate called after throwing an instance of 'VcfFileException'
  what():  # values = ./.:0,0,0:.:.:0|1:18576120_T_C do not match with # fields in FORMAT field = 7 at sampleIndex = 7 See line 47626.
verifyBamID 1.0.0 -- verify identity and purity of sequence data

It turned out that this error occurs because GATK CombineGVCFs drops trailing fields per sample if they are empty. Apparently, this is allowed by the VCF format specification: https://gatkforums.broadinstitute.org/gatk/discussion/4149/format-fields-and-sample-entries-in-vcf-files#latest

Is there a parameter to ignore incomplete sample information?

@Griffan
Copy link
Owner

Griffan commented Feb 4, 2019

Yes, you are right. But at the moment we have not enough hands to amend this feature. You are more than welcome to help to contribute to this package. Otherwise, you can try to use a script to fill in the field in your specific vcf file.

We will try to fix this maybe later this semester.

@matmu
Copy link
Author

matmu commented Feb 5, 2019

I see the point. I am also quite busy right now, but I can extend the error message and link a script which adds the missing fields. Just have to find/create. Or do you know a tool that does this?

@Griffan
Copy link
Owner

Griffan commented Feb 6, 2019

Unfortunately no, if you finished this script, you can try to create a pull request. Thanks!

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

2 participants