Skip to content

pyNBS.pyNBS_plotting

Justin Huang edited this page Jan 24, 2018 · 2 revisions

pyNBS_plotting is a module that contains helper and plotting functions for summarizing various results from the pyNBS algorithm.

Functions in this module

This module contains the following functions (bolded functions are key pyNBS functions):

  • cluster_color_assign: This is a helper function that constructs a color map for different patient clusters. The color map can then be used to color the rows or columns of a co-clustering matrix map, as constructed by plot_cc_map.

  • cluster_KMplot: This function takes patient cluster assignments and patient survival data and plots a Kaplan-Meier survival plot for each cohort cluster. The function can also calculate the log-rank statistic of how different the survival of each cluster is.

  • plot_cc_map: This function plots a co-clustering matrix map which visualizes how often any two tumor samples are clustered together during the consensus clustering step.

Clone this wiki locally