Cooccurrence¶
OpenEnsembles is a resource for performing and analyzing ensemble clustering
Copyright (C) 2017 Naegle Lab
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
-
openensembles.cooccurrence.
add_subplot_axes
(ax, rect, facecolor='w')[source]¶ A non-class function to handle subaxes
-
openensembles.cooccurrence.
plot_matrix_sorted
(matrix, label_vec, threshold, lnk1)[source]¶ A heatmap plotting function, for both co-occurrence and mutual information
- Parameters
- matrix: np.array
An array of values to plot as a heatmap
- label_vec: list of strings
A label_vec to label the row-wise objects. Empty if labels not requested
- threshold: float
Threshold to use for coloring of dendrogram
- lnk1: linkage object
A pre-calcluated linkage object to use to sort.
- Returns
- fig: matplotlib.pyplot figure
The figure handle