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

seqArchR result object.

iter

Choose the iteration of seqArchR result to get from.

Value

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

get_clBasVec_k The number of basis vectors (integer).

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

get_seqClLab 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_seqArchRresult.rds",
         package = "seqArchR", 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)