View source: R/sig_unify_extract.R
sig_unify_extract | R Documentation |
This function provides an unified interface to signature extractor
implemented in sigminer. If you determine a specific approach
,
please also read the documentation of corresponding extractor.
See "Arguments" part.
sig_unify_extract(
nmf_matrix,
range = 2:5,
nrun = 10,
approach = c("bayes_nmf", "repeated_nmf", "bootstrap_nmf", "sigprofiler"),
cores = 1L,
...
)
nmf_matrix |
a |
range |
signature number range, i.e. |
nrun |
the number of iteration to be performed to extract each signature number. |
approach |
approach name.
|
cores |
number of cores used for computation. |
... |
other parameters passing to signature extractor based
on the |
Result dependent on the approach
setting.
sig_extract, sig_auto_extract, bp_extract_signatures, sigprofiler
load(system.file("extdata", "toy_copynumber_tally_W.RData",
package = "sigminer", mustWork = TRUE
))
# Extract signatures
# It is same as sig_extract(cn_tally_W$nmf_matrix, 2, nrun = 1)
res <- sig_unify_extract(cn_tally_W$nmf_matrix, 2,
nrun = 1,
approach = "repeated_nmf"
)
# Auto-extract signatures based on bayesian NMF
res2 <- sig_unify_extract(cn_tally_W$nmf_matrix,
nrun = 1,
approach = "bayes_nmf"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.