set_cds_row_order_matrix | R Documentation |
By default, BPCells stores matrices as one-dimensional vectors in column-major order, as does R.
As a result, column access is fast and row access is slow. We use BPCell's ability to also store and
access matrices in row-major order, which gives fast row access. The function set_cds_row_order_matrix
creates the row-major order matrix and stores it in the assays slot of the CDS with the name
"counts_row_order". The two copies of the counts matrix must have the same count values so if you
replace or change the CDS's counts matrix, you must also update the counts_row_order
matrix, which
you can do using this function set_cds_row_order_matrix.
set_cds_row_order_matrix(cds)
cds |
cell_data_set A cell_data_set. |
cell_data_set The cell_data_set with the additional row-major order counts matrix.
cds <- load_a549(matrix_control=list(matrix_class='BPCells'))
cds <- set_cds_row_order_matrix(cds)
str(cds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.