Skip to content

Commit

Permalink
Bugfix in getmarkers
Browse files Browse the repository at this point in the history
  • Loading branch information
artuurC committed Oct 31, 2023
1 parent 8c41499 commit ce27caf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FlowSOM/tools/getter_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def get_markers(obj, channels, exact=True):
i_marker = np.asarray([i for i, c in enumerate(object_channels) if re.search(channel, c) is not None])
if len(i_marker) != 0:
for i in i_marker:
markernames[object_markers[i]] = object_channels[i]
if len(object_markers[i]) == 0:
markernames[object_channels[i]] = object_channels[i]
else:
markernames[object_markers[i]] = object_channels[i]
else:
i_marker = np.asarray([i for i, m in enumerate(object_markers) if re.search(channel, m) is not None])
if len(i_marker) != 0:
Expand Down

0 comments on commit ce27caf

Please sign in to comment.