View source: R/compute_similarity.R
vector_similarity | R Documentation |
Compute the similarity score between two vectors using a customized scoring function Two vectors may be from either scRNA-seq or bulk RNA-seq data. The lengths of vec1 and vec2 must match, and must be arranged in the same order of genes. Both vectors should be provided to this function after pre-processing, feature selection and dimension reduction.
vector_similarity(vec1, vec2, compute_method, ...)
vec1 |
test vector |
vec2 |
reference vector |
compute_method |
method to run i.e. corr_coef |
... |
arguments to pass to compute_method function |
numeric value of desired correlation or distance measurement
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.