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

Fix parameter passing bug in scDDEstimate

parent f519123d
No related merge requests found
Package: splatter
Type: Package
Title: Simple Simulation of Single-cell RNA Sequencing Data
Version: 1.3.2
Date: 2018-01-31
Version: 1.3.3
Date: 2018-03-27
Author: Luke Zappia
Authors@R:
c(person("Luke", "Zappia", role = c("aut", "cre"),
......
## Version 1.3.3 (2018-03-27)
* Fix parameter passing bug in scDDEstimate
## Version 1.3.2 (2018-01-31)
* Fix QC names that have been changed in scater
......
......@@ -30,7 +30,7 @@
#' data("sc_example_counts")
#'
#' conditions <- sample(1:2, ncol(sc_example_counts), replace = TRUE)
#' params <- scDDEstimate(sc_example_counts, conditions)
#' params <- scDDEstimate(sc_example_counts, conditions = conditions)
#' params
#' }
#' @importFrom BiocParallel SerialParam
......@@ -61,7 +61,8 @@ scDDEstimate.matrix <- function(counts, params = newSCDDParams(),
counts <- SingleCellExperiment(assays = list(counts = counts),
colData = data.frame(condition = conditions))
scDDEstimate.default(counts, "condition", params, verbose, BPPARAM)
scDDEstimate.default(counts, params, verbose, BPPARAM,
condition = "condition")
}
#' @rdname scDDEstimate
......@@ -71,7 +72,8 @@ scDDEstimate.SingleCellExperiment <- function(counts,
verbose = TRUE,
BPPARAM = SerialParam(),
condition = "condition", ...) {
scDDEstimate.default(counts, condition, params, verbose, BPPARAM)
scDDEstimate.default(counts, params, verbose, BPPARAM,
condition = condition)
}
#' @rdname scDDEstimate
......
......@@ -58,7 +58,7 @@ library(scater)
data("sc_example_counts")
conditions <- sample(1:2, ncol(sc_example_counts), replace = TRUE)
params <- scDDEstimate(sc_example_counts, conditions)
params <- scDDEstimate(sc_example_counts, conditions = conditions)
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