I have a data frame which name is thumb_df. It has headers in every column and counts 3000. I produced needed to log2 and then quantile normalize it. And for that, I assigned the thumb_df to data_mat which is a data matrix then make the 0 cells 1 so they cannot give -inf when I log2 after that I normalized the result and name it data_norm. Right now data_norm has no header so I need to assign it back to thumb_df or put the thumb_df headers to data_norm. How should I do that?
thumb_df
data_mat <- as.matrix(thumb_df[,-1])
data_mat[data_mat == 0] <- 1
data_log2 <- log2(data_mat)
data_norm <- normalize.quantiles(data_log2, copy = TRUE) # quatile
normalization
I would be grateful if you can help about that. Thank you.