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: ...@@ -54,7 +54,8 @@ Suggests:
scran, scran,
mfa, mfa,
phenopath, phenopath,
zinbwave zinbwave,
BASiCS
biocViews: SingleCell, RNASeq, Transcriptomics, GeneExpression, Sequencing, biocViews: SingleCell, RNASeq, Transcriptomics, GeneExpression, Sequencing,
Software Software
URL: https://github.com/Oshlack/splatter URL: https://github.com/Oshlack/splatter
......
...@@ -30,13 +30,15 @@ ...@@ -30,13 +30,15 @@
#' @return BASiCSParams object containing the estimated parameters. #' @return BASiCSParams object containing the estimated parameters.
#' #'
#' @examples #' @examples
#' \dontrun{
#' data("sc_example_counts") #' 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), #' Input = rnorm(10, 500, 200),
#' stringsAsFactors = FALSE) #' stringsAsFactors = FALSE)
#' params <- BASiCSEstimate(sc_example_counts[1:50, 1:20], #' params <- BASiCSEstimate(sc_example_counts[1:50, 1:20],
#' spike.info) #' spike.info)
#' params #' params
#' }
#' @export #' @export
BASiCSEstimate <- function(counts, spike.info = NULL, batch = NULL, BASiCSEstimate <- function(counts, spike.info = NULL, batch = NULL,
n = 20000, thin = 10, burn = 5000, n = 20000, thin = 10, burn = 5000,
...@@ -51,7 +53,7 @@ BASiCSEstimate.SCESet <- function(counts, spike.info = NULL, batch = NULL, ...@@ -51,7 +53,7 @@ BASiCSEstimate.SCESet <- function(counts, spike.info = NULL, batch = NULL,
n = 20000, thin = 10, burn = 5000, n = 20000, thin = 10, burn = 5000,
params = newBASiCSParams(), verbose = TRUE, params = newBASiCSParams(), verbose = TRUE,
progress = TRUE, ...) { progress = TRUE, ...) {
counts <- scater::counts(counts) counts <- BiocGenerics::counts(counts)
BASiCSEstimate(counts, params) BASiCSEstimate(counts, params)
} }
......
...@@ -60,11 +60,13 @@ information is provided there must be at least two batches. See ...@@ -60,11 +60,13 @@ information is provided there must be at least two batches. See
\code{\link[BASiCS]{BASiCS_MCMC}} for details. \code{\link[BASiCS]{BASiCS_MCMC}} for details.
} }
\examples{ \examples{
\dontrun{
data("sc_example_counts") 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), Input = rnorm(10, 500, 200),
stringsAsFactors = FALSE) stringsAsFactors = FALSE)
params <- BASiCSEstimate(sc_example_counts[1:50, 1:20], params <- BASiCSEstimate(sc_example_counts[1:50, 1:20],
spike.info) spike.info)
params 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