mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge branch 'release_19.09' into release_20.01
This commit is contained in:
@@ -1119,8 +1119,8 @@ class Cool(H5):
|
||||
if super(Cool, self).sniff(filename):
|
||||
keys = ['chroms', 'bins', 'pixels', 'indexes']
|
||||
with h5py.File(filename, 'r') as handle:
|
||||
fmt = handle.attrs.get('format')
|
||||
url = handle.attrs.get('format-url')
|
||||
fmt = util.unicodify(handle.attrs.get('format'))
|
||||
url = util.unicodify(handle.attrs.get('format-url'))
|
||||
if fmt == MAGIC or url == URL:
|
||||
if not all(name in handle.keys() for name in keys):
|
||||
return False
|
||||
@@ -1179,8 +1179,8 @@ class MCool(H5):
|
||||
return False
|
||||
res0 = list(handle['resolutions'].keys())[0]
|
||||
keys = ['chroms', 'bins', 'pixels', 'indexes']
|
||||
fmt = handle['resolutions'][res0].attrs.get('format')
|
||||
url = handle['resolutions'][res0].attrs.get('format-url')
|
||||
fmt = util.unicodify(handle['resolutions'][res0].attrs.get('format'))
|
||||
url = util.unicodify(handle['resolutions'][res0].attrs.get('format-url'))
|
||||
if fmt == MAGIC or url == URL:
|
||||
if not all(name in handle['resolutions'][res0].keys() for name in keys):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user