Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ttdtrang committed Jan 17, 2020
1 parent 009d065 commit e0519b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/rnaseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0519b7

Please sign in to comment.