Skip to content

Commit

Permalink
Added example for factor sample filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcole committed Nov 15, 2016
1 parent 6ab085b commit 6e8d047
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/sample_filtering.R
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,15 @@ metric_sample_filter = function(expr, nreads = colSums(expr), ralign = NULL,
#' @importFrom diptest dip.test
#' @import gplots
#' @export
#'
#' @examples
#' mat <- matrix(rpois(1000, lambda = 5), ncol=10)
#' colnames(mat) <- paste("X", 1:ncol(mat), sep="")
#' qc = as.matrix(cbind(colSums(mat),colSums(mat > 0)))
#' rownames(qc) = colnames(mat)
#' colnames(qc) = c("NCOUNTS","NGENES")
#' mfilt = factor_sample_filter(expr = mat,qc, plot = TRUE,qual_select_q_thresh = 1)
#'
factor_sample_filter = function(expr, qual, gene_filter = NULL, max_exp_pcs = 5,
qual_select_q_thresh = 0.01, force_metrics = NULL, good_metrics = NULL,
min_qual_variance = 0.7, zcut = 1,
Expand Down
9 changes: 9 additions & 0 deletions man/factor_sample_filter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e8d047

Please sign in to comment.