Description Usage Arguments Details Value Methods (by class) Examples
This method let a user extract a subset of normalizations. This is useful when the original dataset is large and/or many normalization schemes have been applied.
In such cases, the user may want to run scone in mode
return_norm = "no"
, explore the results, and then select the top
performing methods for additional exploration.
1 2 3 4 5 6 7 | select_methods(x, methods)
## S4 method for signature 'SconeExperiment,character'
select_methods(x, methods)
## S4 method for signature 'SconeExperiment,numeric'
select_methods(x, methods)
|
x |
a |
methods |
either character or numeric specifying the normalizations to select. |
The numeric method will always return the normalization
corresponding to the methods
rows of the scone_params
slot.
This means that if scone
was run with eval=TRUE
,
select_methods(x, 1:3)
will return the top three ranked method. If
scone
was run with eval=FALSE
, it will return the
first three normalization in the order saved by scone.
A SconeExperiment
object with selected method data.
x = SconeExperiment,methods = character
: If
methods
is a character, it will return the subset of
methods named in methods
(only perfect match). The
string must be a subset of the row.names
of the slot
scone_params
.
x = SconeExperiment,methods = numeric
: If
methods
is a numeric, it will return the subset of methods
according to the scone ranking.
1 2 3 4 5 6 7 8 | set.seed(42)
mat <- matrix(rpois(500, lambda = 5), ncol=10)
colnames(mat) <- paste("X", 1:ncol(mat), sep="")
obj <- SconeExperiment(mat)
res <- scone(obj, scaling=list(none=identity, uq=UQ_FN),
evaluate=TRUE, k_ruv=0, k_qc=0,
eval_kclust=2, bpparam = BiocParallel::SerialParam())
select_res = select_methods(res,1:2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.