HMatrix | R Documentation |
Return a list of H-Matrices or an H-Matrix for the indicaded rank
HMatrix(x, k = NULL, ...) ## S4 method for signature 'ButchR_NMF' HMatrix(x, k = NULL, ...) ## S4 method for signature 'ButchR_integrativeNMF' HMatrix(x, k = NULL, view_id = NULL, type = "all", ...) ## S4 method for signature 'ButchR_joinNMF' HMatrix(x, k = NULL, ...)
x |
an object of class ButchR_NMF, ButchR_joinNMF, or ButchR_integrativeNMF. |
k |
numeric - factorization rank. |
... |
additional parameters. |
view_id |
for integrative NMF; character vector with views from which to extract H matrices |
type |
for integrative NMF; type of H matrix to extract, could be:
|
list of H-Matrices or an H-Matrix for the indicaded rank.
data("leukemia") nmf_exp <- run_NMF_tensor(leukemia$matrix, ranks = 2, method = "NMF", n_initializations = 2) HMatrix(nmf_exp) HMatrix(nmf_exp, k = 2) HMatrix(nmf_exp) HMatrix(nmf_exp, k = 2) ## Not run: # For ButchR_integrativeNMF objects: # extract H matrices for all factorization ranks HMatrix(inmf_exp, type = "shared") HMatrix(inmf_exp, type = "viewspec") HMatrix(inmf_exp, type = "total") HMatrix(inmf_exp, type = "all") # extract H matrices only for selected rank HMatrix(inmf_exp, k = 2, type = "shared") HMatrix(inmf_exp, k = 2, type = "viewspec") HMatrix(inmf_exp, k = 2, type = "total") HMatrix(inmf_exp, k = 2, type = "all") # extract H matrices only for selected view and rank HMatrix(inmf_exp, k = 2, view_id = "atac", type = "viewspec") HMatrix(inmf_exp, k = 2, view_id = "atac", type = "total") ## End(Not run) ## Not run: # For ButchR_joinNMF objects: HMatrix(jnmf_exp) HMatrix(jnmf_exp, k = 2) lapply(HMatrix(jnmf_exp, k = 2), head) HMatrix(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.