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

IndexFeatureFile fails with compressed vcf on GCS #6348

Closed
1 task done
kachulis opened this issue Jan 6, 2020 · 1 comment
Closed
1 task done

IndexFeatureFile fails with compressed vcf on GCS #6348

kachulis opened this issue Jan 6, 2020 · 1 comment
Assignees
Labels

Comments

@kachulis
Copy link
Contributor

kachulis commented Jan 6, 2020

Bug Report

Affected tool(s) or class(es)

IndexFeatureFile

Affected version(s)

  • Latest master branch as of [1/6/2020]

Description

When running IndexFeatureFile on a compressed vcf stored on GCS, tool fails, error message:

  A USER ERROR has occurred: Error while trying to create index for dir/file.vcf.gz. Error was: 
  htsjdk.tribble.TribbleException.FeatureFileDoesntExist: Unable to open the input file, most 
  likely the file doesn't exist., for input source: /dir/file.vcf.gz

When running on an uncompressed vcf on GCS, the tool succeeds.

I've traced the issue to SeekableStreamFactory.getStreamFor in htsjdk, which gets called from IndexFactory.initIndexableBlockCompressedStream (also in htsdjk), and doesn't appear to handle GCS paths correctly.

@lbergelson lbergelson added the bug label Jan 6, 2020
@droazen droazen added this to the GATK-Triaged-Issues milestone Jan 6, 2020
lbergelson pushed a commit that referenced this issue Jan 27, 2020
* Don't call toAbsolutePath on our Paths since it resolves paths that are not already absolute to a (implementation dependent) default location, which will often return an incorrect result for non-default file systems.
* Cosmetic improvement to the error reported in #6348
@cmnbroad
Copy link
Collaborator

Closed via #6462 (actually via htsjdk #6367) and #6367.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants