#' Default Parameters of Simulation Methods
#'
#' This function is used to get the default parameters of a simulation method.
#'
#' @param method Method name
#' @import splatter
#'
#' @export
#'
#' @examples
#' parameters <- default_parameters(method = "Splat")
default_parameters <- function(method){
if(method == "Splat" | method == "SCRIP"){
parameters <- splatter::newSplatParams()
}
if(method == "Simple"){
parameters <- splatter::newSimpleParams()
}
if(method == "Kersplat"){
parameters <- splatter::newKersplatParams()
}
if(method == "SplatPop"){
parameters <- splatter::newSplatPopParams()
}
if(method == "Lun"){
parameters <- splatter::newLunParams()
}
if(method == "Lun2"){
parameters <- splatter::newLun2Params()
}
if(method == "scDesign"){
parameters <- NULL
}
if(method == "zinbwave"){
parameters <- splatter::newZINBParams()
}
if(method == "BASiCS"){
parameters <- splatter::newBASiCSParams()
}
if(method == "ESCO"){
if(!requireNamespace("ESCO", quietly = TRUE)){
message("Install ESCO...")
if(!requireNamespace("devtools", quietly = TRUE)){
message("Install devtools...")
utils::install.packages("devtools")
}
devtools::install_github("JINJINT/ESCO")
}
parameters <- ESCO::newescoParams()
}
if(method == "SPsimSeq"){
parameters <- NULL
}
if(method == "SimBPDD"){
parameters <- NULL
}
return(parameters)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.