Basis vectors' information for the selected iteration.

get_clBasVec(res, iter)

get_clBasVec_k(res, iter)

get_clBasVec_m(res, iter)

get_seqClLab(res, iter = NULL)

Arguments

res

archR result object.

iter

Choose the iteration of archR result to get from.

Value

A list with two elements `nBasisVectors` (integer) and `basisVectors` (matrix).

The number of basis vectors (integer).

The basis vectors' matrix with features along the rows of the matrix.

A character vector denoting the cluster IDs for each sequence.

Functions

  • get_clBasVec_k: Get the number of basis vectors (clusters) at the selected iteration.

  • get_clBasVec_m: The basis vectors matrix at the selected iteration. Note that eatures along rows.

  • get_seqClLab: Get the cluster IDs for each sequence. Note that order of sequences here is as per the input.

See also

Examples

res <- readRDS(system.file("extdata", "example_archRresult.rds", package = "archR", mustWork = TRUE)) k <- get_clBasVec_k(res=res, iter=2) bMat <- get_clBasVec_m(res=res, iter=2) ## cluster labels of sequences from final clustering scLab <- get_seqClLab(res=res, iter=2)