View source: R/cbea_internals.R
get_raw_score | R Documentation |
Get CBEA scores for a given matrix and a vector of column indices
get_raw_score(X, idx)
X |
(Matrix). OTU table of matrix format where taxa are columns and samples are rows |
idx |
(Integer vector). Vector of integers indicating the column ids of taxa in a set |
A matrix of size n
by 1
where n
is the total number of samples
data(hmp_gingival) seq <- hmp_gingival$data seq_matrix <- SummarizedExperiment::assays(seq)[[1]] seq_matrix <- t(seq_matrix) + 1 rand_set <- sample(seq_len(ncol(seq_matrix)), size = 10) scores <- get_raw_score(X = seq_matrix, idx = rand_set)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.