We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9f594 commit 2f552feCopy full SHA for 2f552fe
dimspy/portals/paths.py
@@ -99,6 +99,11 @@ def check_paths(tsv, source):
99
elif h5py.is_hdf5(source):
100
peaklists = hdf5_portal.load_peaklists_from_hdf5(source)
101
filenames = [pl.ID for pl in peaklists]
102
+ elif os.path.isfile(source):
103
+ if source.lower().endswith(".raw") or source.lower().endswith(".mzml"):
104
+ filenames.append(source)
105
+ else:
106
+ raise IOError("Incorrect file format, provide .mzml or .raw files: {}".format(source))
107
else:
108
raise IOError("[Errno 2] No such file or directory: {} or {}".format(source, tsv))
109
0 commit comments