Skip to content

Commit

Permalink
Add right-hand-side marker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
y2kbugger committed Oct 12, 2021
1 parent 410a854 commit 31dc4a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ark/utils/metacluster_remap_gui/metaclustergui.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ def _heatmap(ax, column_count):

self.ax_c.yaxis.set_tick_params(which='major', labelleft=False)
self.ax_c.set_yticks(np.arange(self.mcd.marker_count) + 0.5)
self.ax_c.set_yticklabels(self.mcd.marker_names)
self.ax_c.set_xticks(np.arange(self.mcd.cluster_count) + 0.5)
self.ax_m.set_xticks(np.arange(self.mcd.metacluster_count) + 0.5)
self.ax_c.xaxis.set_tick_params(which='both', bottom=False, labelbottom=False)
self.ax_m.xaxis.set_tick_params(which='both', bottom=False, labelbottom=False)
self.ax_m.yaxis.set_tick_params(which='both', bottom=False, labelbottom=False)
self.ax_m.yaxis.set_tick_params(which='both', left=False, labelleft=False)
self.ax_m.yaxis.set_tick_params(which='both', right=True, labelright=True, labelsize=7)
self.ax_m.set_yticks(np.arange(self.mcd.marker_count) + 0.5)

# xaxis metacluster color labels
self.ax_cl.xaxis.set_tick_params(which='both', bottom=False, labelbottom=False)
Expand Down Expand Up @@ -205,6 +206,7 @@ def _color_labels(ax, column_count):
leaf_font_size=8,
)
self.mcd.set_marker_order(self.ddg['leaves'])
self.ax_m.set_yticklabels(self.mcd.marker_names)

self.ax_cd.figure.frameon = False
self.ax_cd.spines["top"].set_visible(False)
Expand Down

0 comments on commit 31dc4a2

Please sign in to comment.