From e0519b77f5518b2b5f9a3b2671810684d1f103d0 Mon Sep 17 00:00:00 2001 From: Trang Tran Date: Fri, 17 Jan 2020 16:07:53 -0700 Subject: [PATCH] documentation --- R/rnaseq.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/rnaseq.R b/R/rnaseq.R index b80179d..71751ea 100644 --- a/R/rnaseq.R +++ b/R/rnaseq.R @@ -419,6 +419,7 @@ best.cluster <- function(clusters.df, features = c('Rank1Residuals', 'size'), we #' normalize a read count matrix given the set of reference genes identified by id #' @param X a read-count matrix of the form samples x genes(transcripts) #' @param ref.idx an integer vector specifying the column indices of X to be used as reference +#' @param scale (default to TRUE) whether to scale the normalizing factors such that their geometric mean is 1 #' @export normalize.by.refs <- function(X, ref.idx, scale = TRUE) { if (length(ref.idx) == 1) { # need to be treated specially since dim(X) reduces to NULL and cause error in apply