vector_similarity: Compute similarity between two vectors

Description Usage Arguments Value

View source: R/compute_similarity.R

Description

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.

Usage

1
vector_similarity(vec1, vec2, compute_method, ...)

Arguments

vec1

test vector

vec2

reference vector

compute_method

method to run i.e. corr_coef

...

arguments to pass to compute_method function

Value

numeric value of desired correlation or distance measurement


clustifyr documentation built on Nov. 8, 2020, 5:32 p.m.