There is currently a bug in the VcfRecord.toString method that adds an extra tab when the record does not have any format fields.
eg.
If the following VcfRecord has toString called on it:
chr1\t1000\trs100\tA\tC\t0.0\tPASS\t.
it ends up looking like:
chr1\t1000\trs100\tA\tC\t0.0\tPASS\t.\t\n
As you can see, there is an extra tab before the new line character.
This will cause the VcfRecord to fail validation
Type of change
Please delete options that are not relevant.
[X] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Added unit test, modified existing unit test.
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
Description
There is currently a bug in the
VcfRecord.toString
method that adds an extra tab when the record does not have any format fields. eg. If the following VcfRecord has toString called on it:it ends up looking like:
As you can see, there is an extra tab before the new line character. This will cause the
VcfRecord
to fail validationType of change
Please delete options that are not relevant.
How Has This Been Tested?
Added unit test, modified existing unit test.
Checklist: