sparse_score_mat | R Documentation |
This can be useful for storing raw forwards and reverse NBLAST scores for a set of neurons without having to store all the uncomputed elements in the full score matrix.
sparse_score_mat(neuron_names, dense_matrix)
neuron_names |
a character vector of neuron names to save scores for. |
dense_matrix |
the original, dense version of the full score matrix. |
A spare matrix, in compressed, column-oriented form, as an R object
inheriting from both CsparseMatrix-class
and
generalMatrix-class
.
fill_in_sparse_score_mat
data(kcs20, package = "nat")
scores=nblast_allbyall(kcs20)
scores.3.sparse=sparse_score_mat(names(kcs20)[3], scores)
scores.3.sparse
# can also add additional submatrices
fill_in_sparse_score_mat(scores.3.sparse,scores[3:6,3:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.