Skip to content

Commit

Permalink
Need force=True in pysam.tabix_index because the index file path exis…
Browse files Browse the repository at this point in the history
…ts in the object store
  • Loading branch information
mvdbeek committed Dec 8, 2017
1 parent 2a6e00d commit 07158e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/tabular.py
Expand Up @@ -763,7 +763,7 @@ def set_meta(self, dataset, **kwd):
index_file = dataset.metadata.spec['tabix_index'].param.new_file(dataset=dataset)

try:
pysam.tabix_index(dataset.file_name, index=index_file.file_name, preset='vcf')
pysam.tabix_index(dataset.file_name, index=index_file.file_name, preset='vcf', force=True)
except Exception as e:
raise Exception('Error setting VCF.gz metadata: %s' % (str(e)))
dataset.metadata.tabix_index = index_file
Expand Down

0 comments on commit 07158e0

Please sign in to comment.