projectiLCA | R Documentation |
projectiLCA estimates the embeddings for samples in a new dataset when given a gene loading matrix from an iLCA analysis result of another single matrix, or set of matrices (e.g. the "list_component" from a twoStageiLCA output object)
projectiLCA(
proj_dataset,
proj_group,
list_component,
ica_score,
max_ite = 1000,
max_err = 1e-04,
enable_normalization = TRUE,
column_sum_normalization = FALSE
)
proj_dataset |
The dataset(s) to be projected on. |
proj_group |
A logical vector indicating which groupings, i. e. which elements of list_component should be used for each projected dataset. The length of proj_group should match the length of list_component. |
list_component |
a single matrix of gene loadings as a list element, or a list_component produced from a twoStageiLCA() decomposition. |
ica_score |
ice_score produced from a twoStageiLCA() decomposition. |
max_ite |
The maximum number of iterations for the twoStageiLCA algorithms to run, default value is set to 1000 |
max_err |
The maximum error of loss between two iterations, or the program will terminate and return, default value is set to be 0.0001 |
enable_normalization |
An argument to decide whether to use normalizaiton or not, default is TRUE |
column_sum_normalization |
An argument to decide whether to use column sum normalization or not, default it FALSE |
A list that contains the projected scores of each dataset on every component.
proj_dataset = list(matrix(runif(5000, 1, 2), nrow = 100, ncol = 50))
proj_group = c(TRUE, TRUE) # which groupings in the twoStageiLCA analysis you want to project on.
list_component = twoStageiLCA_res$linked_component_list # from twoStageiLCA result
ica_score = twoStageiLCA_res$ica_score # from twoStageiLCA result
res_projiLCA = projectiLCA(
proj_dataset = proj_dataset,
proj_group = proj_group,
list_component = list_component,
ica_score = ica_score)
PLEASE MAKE SURE YOUR proj_dataset AND list_component ELEMENTS HAVE MEANINGFUL ROW(GENE) NAMES - they are matched across matrices for the projection.
#'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.