Hello All,
I have read counts from RNA seq data in row and columns. I want to quantile normalized them in R. I have following code. This gives me the normalized values. However, the output is a matrix. I want the output with row name and column name so that I can perform PCA on it.
data <- read.csv("data.csv",header=T)
head(data)
data_mat <- as.matrix(data[,-1])
head(data_mat)
data_norm <- normalize.quantiles(data_mat, copy = TRUE)
Could someone help me to get that? Thank you in advance.
Are you implying that your data_norm object has no row or column names after you perform quantile normalisaton? What about your data.csv file?
Yes exactly. data_norm object has no row or column names after I perform quantile normalization. However, data.csv has it.