Nothing
normInteraction <- function(data, genename, interactome){
##gene names of all tested genes
rnInteractome <- row.names(interactome)
genename2Interactome <- rnInteractome%in%genename
if(sum(genename2Interactome) == 0) stop("no tested genes are listed in the interactome matrix")
testedInteractome <- interactome[genename2Interactome, ]
cntestedI <- colnames(testedInteractome)
cnData <- colnames(data)
noEmptyComplex <- cntestedI%in%cnData
testedInteractome <- testedInteractome[, noEmptyComplex]
## Normalization by the number of possible interaction by complexes
normFactor <- colSums(testedInteractome)
U <- sweep(data, 2, normFactor, "/")
normData <- sweep(U, 1, normFactor, "/")
normData <- round(normData, 2)
idx <- which(is.na(normData))
normData[idx] <- 0
return(normData)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.