def xmat_heatmap(self, selected_labels=None, selected_fids=None, col_labels=None, transform=None, title=None, xlab=None, ylab=None, figsize=(10, 10), **kwargs): """ Plot x as heatmap. """ selected_s_bool_inds = self.lab_x_bool_inds(selected_labels) selected_s_ids = self._sids[selected_s_bool_inds] selected_slcs = self.id_x(selected_s_ids, selected_fids) return heatmap(selected_slcs._x, row_labels=selected_slcs.labs, col_labels=col_labels, transform=transform, title=title, xlab=xlab, ylab=ylab, figsize=figsize, **kwargs)
def dmat_heatmap(self, selected_labels=None, col_labels=None, transform=None, title=None, xlab=None, ylab=None, figsize=(10, 10), **kwargs): """ Plot distance matrix with rows colored by current labels. """ selected_s_bool_inds = self.lab_x_bool_inds(selected_labels) selected_labels = self._labs[selected_s_bool_inds].tolist() selected_d = self._d[selected_s_bool_inds, :][:, selected_s_bool_inds] return heatmap(selected_d, row_labels=selected_labels, col_labels=col_labels, transform=transform, title=title, xlab=xlab, ylab=ylab, figsize=figsize, **kwargs)