Skip to content

Commit ce27caf

Browse files
author
artuurC
committed
Bugfix in getmarkers
1 parent 8c41499 commit ce27caf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/FlowSOM/tools/getter_functions.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def get_markers(obj, channels, exact=True):
9090
i_marker = np.asarray([i for i, c in enumerate(object_channels) if re.search(channel, c) is not None])
9191
if len(i_marker) != 0:
9292
for i in i_marker:
93-
markernames[object_markers[i]] = object_channels[i]
93+
if len(object_markers[i]) == 0:
94+
markernames[object_channels[i]] = object_channels[i]
95+
else:
96+
markernames[object_markers[i]] = object_channels[i]
9497
else:
9598
i_marker = np.asarray([i for i, m in enumerate(object_markers) if re.search(channel, m) is not None])
9699
if len(i_marker) != 0:

0 commit comments

Comments
 (0)