| SignatureFeatures | R Documentation |
Returns a binary matrix for every factorization rank, with features in the rows and samples in the columns, in which 1 means that the features is contributing to the signature, and 0 it does not. The extraction of Signature Features is not supported for k = 2.
SignatureFeatures(x, k = NULL, ...) ## S4 method for signature 'ButchR_NMF' SignatureFeatures(x, k = NULL, ...) ## S4 method for signature 'ButchR_integrativeNMF' SignatureFeatures(x, k = NULL, view_id = NULL, ...)
x |
an object of class ButchR_NMF, ButchR_joinNMF, or ButchR_integrativeNMF. |
k |
numeric - factorization rank |
... |
additional parameters. |
view_id |
character vector with views from which signature features will be extracted. |
list of binary matrices if 'k'=NULL or a single binary matrix for the selected factorization rank.
data("leukemia")
nmf_exp <- run_NMF_tensor(leukemia$matrix, ranks = 3,
method = "NMF",
n_initializations = 2,
extract_features = TRUE)
SignatureFeatures(nmf_exp)
SignatureFeatures(nmf_exp, k = 3)
## Not run:
# For ButchR_NMF objects:
SignatureFeatures(nmf_exp)
SignatureFeatures(nmf_exp, k = 3)
## End(Not run)
## Not run:
# For ButchR_integrativeNMF objects:
SignatureFeatures(inmf_exp, k = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.