Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
UpdateVcfSequenceDictionary cannot write index #863
Comments
nh13
added the
bug
label
Jul 10, 2017
ronlevine
was assigned
by nh13
Jul 10, 2017
|
@ronlevine even better, if the output file is |
|
@ronlevine I have added a potential fix into htsjdk so that |
|
Reverted the non-test changes from #741 and fixed/expanded tests on https://github.com/broadinstitute/picard/compare/rhl_uvsd_fix_stdout. samtools/htsjdk#933 should fix the stdout test failure. |
|
I checked out both your htsjdk and picard branches and got the following when testing it:
|
|
The Picard branch should get that NPE since the htsjdk fix from nh_vcf_to_stdout is not yet in. Update nh_vcf_to_stdout and try again, it should work fine. nh_vcf_to_stdout runs without error locally for me as well as on travis, the automated testing framework. |
|
Still getting the NPE. I checked out the branch in htsjdk, ran |
|
I am getting the same error. VCFWriter is trying to write a buffer to a null |
|
I made a change in
The following command successfully wrote to stdout without error: |
nh13 commentedJul 10, 2017
@ronlevine looks like you introduced a bug, can you fix? Try writing it to a file with
CREATE_INDEX=true. Since you wrapped it with an output stream :/. I am curious as to why the change was made at all, since shouldn'tVariantContextWriterBuilder.determineOutputTypeFromFilehandle this? What was the original problem?https://github.com/broadinstitute/picard/blob/master/src/main/java/picard/vcf/UpdateVcfSequenceDictionary.java#L92-L99