Fix sniffing of readname sorted BAM files

This fixes https://github.com/galaxyproject/galaxy/issues/6949.
The problem is that `super` would fall back to the BamInputSorted
sniffer, which prevents sniffing. Includes a test file for the new
datatype upload testing framework.
This commit is contained in:
mvdbeek
2018-11-01 12:00:38 -04:00
committed by Martin Cech
parent 4c7ba6f0fe
commit 30aaa296dd
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ class BamQuerynameSorted(BamInputSorted):
file_ext = "qname_sorted.bam"
def sniff(self, file_name):
return super(BamQuerynameSorted, self).sniff(file_name) and not self.dataset_content_needs_grooming(file_name)
return BamNative().sniff(file_name) and not self.dataset_content_needs_grooming(file_name)
def dataset_content_needs_grooming(self, file_name):
"""
Binary file not shown.