Creates a heatmap of KEGG and InterProScan data.
plot_heatmap(tibble_ko, y_axis, analysis=c("KEGG","INTERPRO", "dbCAN", "MEROPS"),
data_experiment=NULL, calc=NULL, scale_option=NULL, order_y=NULL, order_x=NULL,
split_y=FALSE, color_pallet=NULL, distance=FALSE)
a data frame object. It could have been created with the mapping_ko or get_subset_* functions. If that is the case you will have to choose which type of analysis do you want to show, "binary", "abundance" or "percentage". You can also include a table with the counts that you want to use.
a string. A column name of the tibble_ko of a feature to plot (i.e. KO/Pathways/Modules/PFAM/INTERPRO).
a character indicating the input file. Valid arguments KEGG","INTERPRO", "dbCAN", "MEROPS".
optional. a data frame object containing metadata information.
optional. This option is only valid for "KEGG" analysis. Is a character indicating with type of calc should be done to plot the results. Valid values are "Abundance", "Binary", "Percentage", and "None". If you chose none you are spected to use a tibble table obtained from calc_binary or calc_percentage.
a character indicating if rows or columns should be scale. Valid options "none", "row" or "column".
optional. This option is only valid for "KEGG" analysis. Is a column name indicating the annotation if rows. This column name comes from the mapping_ko or get_subset_* object.
optional. This option is only valid for "KEGG" analysis. Is a column name indicating the annotation if cols. This column name comes from the metadata object.
optional. This option is only valid for "KEGG" analysis. A logical character indicating if you want to split y axis, based on order_y character.
optional. a character vector of colors to use.
optional. If TRUE it will calculate a distance matrix and show how similar are the different genomes.
This function is part of a package used for the analysis of bins metabolism.
if (FALSE) { # \dontrun{
plot_heatmap(tibble_ko=ko_bin_mapp, y_axis=Pathway,
analysis="INTERPRO", data_experiment = metadata,
calc="Binary", order_y=Module, order_x=Clades)
} # }