Skip to content

Commit

Permalink
Mention acceptable compressed VCF file extension in GenomicsDBImport …
Browse files Browse the repository at this point in the history
…error message (#7692)

Resolves #7691
  • Loading branch information
droazen committed Feb 23, 2022
1 parent 687d93e commit 77b725d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ private static void assertIntervalsCoverEntireContigs(GenomicsDBImporter importe
private static void assertVariantFileIsCompressedAndIndexed(final Path path) {
if (!path.toString().toLowerCase().endsWith(FileExtensions.COMPRESSED_VCF)) {
throw new UserException("Input variant files must be block compressed vcfs when using " +
BYPASS_FEATURE_READER + ", but " + path.toString() + " does not appear to be");
BYPASS_FEATURE_READER + ", but " + path.toString() + " does not end with " +
"the standard file extension " + FileExtensions.COMPRESSED_VCF);
}
Path indexPath = path.resolveSibling(path.getFileName() + FileExtensions.COMPRESSED_VCF_INDEX);
IOUtils.assertFileIsReadable(indexPath);
Expand Down

0 comments on commit 77b725d

Please sign in to comment.