I have a gene count datasets that look like:
I am trying to do inverse normal transformation on this dataset but the results are coming like this:
I want to do it across samples. so basically want to get an output that looks like sample as column and gene as row and INT applied across sample for each gene.
inormal <- function(x)
{
data <<- (qnorm((rank(x, na.last = "keep") - 0.5) / sum(!is.na(x))))
}
data:
structure(list(GTEX.1117F = c(4.85944, 1.67961, 0.29352, 0.09784, 4.25609, 0.99472), GTEX.1128S = c(1.54004, 0.55209, 0.31963, 0.72643, 4.09708, 0.37775)), row.names = c("ENSG00000227232.5", "ENSG00000268903.1", "ENSG00000269981.1", "ENSG00000241860.6", "ENSG00000279457.4", "ENSG00000228463.9"), class = "data.frame")