WMatrix | R Documentation |
Return a list of W-Matrices or a W-Matrix for the indicaded rank
WMatrix(x, k = NULL, ...) ## S4 method for signature 'ButchR_NMF' WMatrix(x, k = NULL, ...) ## S4 method for signature 'ButchR_integrativeNMF' WMatrix(x, k = NULL, view_id = NULL, ...) ## S4 method for signature 'ButchR_joinNMF' WMatrix(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 to extract W matrices |
list of W-Matrices or a W-Matrix for the indicated rank.
data("leukemia") nmf_exp <- run_NMF_tensor(leukemia$matrix, ranks = 2, method = "NMF", n_initializations = 2) WMatrix(nmf_exp) WMatrix(nmf_exp, k = 2) # For ButchR_NMF objects: WMatrix(nmf_exp) WMatrix(nmf_exp, k = 2) ## Not run: # For ButchR_integrativeNMF objects: WMatrix(inmf_exp) WMatrix(inmf_exp, k = 2) lapply(WMatrix(inmf_exp, k = 2), head) WMatrix(inmf_exp, k = 2, view_id = "atac") ## End(Not run) ## Not run: # For ButchR_joinNMF objects: WMatrix(jnmf_exp) WMatrix(jnmf_exp, k = 2) lapply(WMatrix(jnmf_exp, k = 2), head) WMatrix(jnmf_exp, k = 2, view_id = "atac") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.