R/GetNormalizedMat.R

Defines functions GetNormalizedMat

Documented in GetNormalizedMat

GetNormalizedMat<-function(Data, Sizes){
if(length(Sizes)!=length(Data) &  length(Sizes)!=ncol(Data))
	    stop("The number of library size factors is not the same as the number of samples!")
if(length(Sizes)==length(Data))Out=Data/Sizes
if(length(Sizes)==ncol(Data))Out=t(t(Data)/Sizes)
Out}

Try the EBSeq package in your browser

Any scripts or data that you put into this service are public.

EBSeq documentation built on Nov. 8, 2020, 6:52 p.m.