\name{interpolateHelper} \alias{interpolateHelper} \title{Quantile Adjustment interpolator} \description{Helper function to interpolate the quantile function } \usage{ interpolateHelper(mu, p, r, count.max, verbose=TRUE) } \arguments{ \item{mu}{matrix of means} \item{p}{matrix of percentiles} \item{r}{scalar, vector or matrix of \code{size} parameters} \item{count.max}{vector of maximum counts for all tags} \item{verbose}{whether to write comments, default \code{true}} } \value{matrix with quantile-adjusted pseudodata } \author{Mark Robinson, Davis McCarthy} \examples{ y<-matrix(rnbinom(10000,size=2,mu=10),ncol=4) d<-DGEList(data=y,group=rep(1:2,each=2),lib.size=rep(c(1000,1010),2)) ps<-estimatePs(d,r=2) N<-prod(d$lib.size)^(1/ncol(d$data)) perc<-pnbinom(d$data-1,size=2,mu=outer(ps$p.common,d$lib.size))+dnbinom(d$data,size=2,mu=outer(ps$p.common,d$lib.size))/2 maxcounts<-apply(d$data,1,max) pseudo<-interpolateHelper(outer(ps$p.common,rep(N,4)),perc,r=2,maxcounts) } \keyword{algebra}