SiSaNA now has the option to create clustermaps, allowing the user to visualize clusters of samples and genes/TFs. For this option, users also specify categorical metadata columns to color the samples on. For example, if you have columns called "Tumor_Grade" and "Group" in your metadata, you can create something like this (shown is just the top of the clustermap):

To create these clustermaps, the following can be added to the params.yml file:
Use the following to create a clustermap, which will cluster the parameters (TFs, genes, etc.) and add column colors for categorization of samples
example: sisana visualize clustermap params.yml
clustermap:
datafile: Path to file containing the expression or indegrees of each gene per sample
filetype: Type of input file, must be either "csv", "txt", or "tsv", where csv implies comma separated values and txt/tsv implies tab-separated
statsfile: Path to file with the comparison output performed between two groups
metadata: Path to the csv metadata file mapping samples to groups (groups must match names of the groupnames arg), must have a header of the format 'name,group'
genelist: .txt file containing a list of genes to plot, must match the name of genes in the datafile. Recommended to not use more than 10 genes, otherwise use a heatmap.
column_cluster: Flag ("True" or "False") for if you wish to perform hierarchical clustering on the columns. If False, then the samples will only be grouped according to the first category in category_label_columns
row_cluster: Flag ("True" or "False") for if you wish to perform hierarchical clustering on the genes
plot_gene_names: Flag ("True" or "False") for whether to plot the names of the genes on the rows of the heatmap
plot_sample_names: Flag ("True" or "False") for whether to plot the names of the samples on the columns of the heatmap
category_label_columns: The names of columns (categories of samples) in the metadata file you wish to use for coloring the columns in the clustermap. The clustermap will be grouped by the first name given, unless column_cluster=True
- Tumor_Grade
- Group
category_column_colors: The matplotlib color codes you wish to use for the sub-categories given in category_label_columns. For example, a category called "Sex" may want to use ["pink", "blue"] as their colors (though SiSaNA has no way of determining which samples are female or male, so you may need to change the order you give the colors)
- ["r", "b", "green", "y", "teal"]
- ["dodgerblue", "orange", "k", "lightcoral", "thistle"]
outdir: Path to directory to output file to
prefix: Prefix to use for the output file; note that the output file will automatically be generated with the suffix '_clustermap.png'