R.heatmap_pheatmap.R Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytica-lib Show documentation
Show all versions of analytica-lib Show documentation
Library allowing generation of plots and data from proteomics and
metabolomics mass spectrometry data through the use of R and java
methods.
The newest version!
heatmap_pheatmap <- function(file_in, clusters_number) {
data_in <- read.delim(file_in, header = T, sep = ",")
data <- select(data_in, -matches("Groups"))
rownames(data) <- data_in$Groups
# center and scale the data to help heatmap-ing:
x <- scale(data) # scale and center columns
x <- t(scale(t(x))) # scale and center rows
heatmap(x)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy