View source: R/scoringMatrix.R
sorensenIndex | R Documentation |
Calculates the Sorensen index between two groups of repertoires. Similar to a Jaccard index, Sorensen index gives a greater weight to shared sequences over unique sequences.
sorensenIndex(sample_list)
sample1 |
A data frame consisting of frequencies of antigen receptor sequences. "junction_aa" and "duplicate_count" are a required columns. |
sample2 |
A data frame consisting of frequencies of antigen receptor sequences. "junction_aa" and "duplicate_count" are a required columns. |
Returns the similarity score, a measure of the amount of overlap between two samples. The value ranges from 0 to 1 where 1 indicates the sequence frequencies are identical in the two samples and 0 indicates no shared frequencies.
scoringMatrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.