Skip to content
Snippets Groups Projects
Commit f5da0def authored by Luke Zappia's avatar Luke Zappia
Browse files

Run checks

parent d828f4d3
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,8 @@ Suggests:
scran,
mfa,
phenopath,
zinbwave
zinbwave,
BASiCS
biocViews: SingleCell, RNASeq, Transcriptomics, GeneExpression, Sequencing,
Software
URL: https://github.com/Oshlack/splatter
......
......@@ -30,13 +30,15 @@
#' @return BASiCSParams object containing the estimated parameters.
#'
#' @examples
#' \dontrun{
#' data("sc_example_counts")
#' spike.info <- data.frame(Name = rownames(counts)[1:10],
#' spike.info <- data.frame(Name = rownames(sc_example_counts)[1:10],
#' Input = rnorm(10, 500, 200),
#' stringsAsFactors = FALSE)
#' params <- BASiCSEstimate(sc_example_counts[1:50, 1:20],
#' spike.info)
#' params
#' }
#' @export
BASiCSEstimate <- function(counts, spike.info = NULL, batch = NULL,
n = 20000, thin = 10, burn = 5000,
......@@ -51,7 +53,7 @@ BASiCSEstimate.SCESet <- function(counts, spike.info = NULL, batch = NULL,
n = 20000, thin = 10, burn = 5000,
params = newBASiCSParams(), verbose = TRUE,
progress = TRUE, ...) {
counts <- scater::counts(counts)
counts <- BiocGenerics::counts(counts)
BASiCSEstimate(counts, params)
}
......
......@@ -60,11 +60,13 @@ information is provided there must be at least two batches. See
\code{\link[BASiCS]{BASiCS_MCMC}} for details.
}
\examples{
\dontrun{
data("sc_example_counts")
spike.info <- data.frame(Name = rownames(counts)[1:10],
spike.info <- data.frame(Name = rownames(sc_example_counts)[1:10],
Input = rnorm(10, 500, 200),
stringsAsFactors = FALSE)
params <- BASiCSEstimate(sc_example_counts[1:50, 1:20],
spike.info)
params
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment