li {divo} | R Documentation |
li Sorensen Index
Description
The Sorensen similarity (overlap) index measures the overlap between two populations by taking the ratio of the number of species shared between the two populations, relative to the number of species in both populations. The index varies between zero (no overlap) and one (perfect overlap). It is closely related to the Jaccard index of similarity (implemented in function ji
).
Usage
li(x, CI = 0.95, resample = 100, graph = FALSE, csv_output = FALSE,
PlugIn = FALSE, size = 1, saveBootstrap = FALSE)
Arguments
x |
a matrix containing input populations |
CI |
Confidence Interval default = 0.95, range (0, 1) |
resample |
set number of repetitions, default = 100 |
graph |
default = FALSE, plot the results of hierarchical clustering of pairwise analysis of Sorensen Index; |
csv_output |
save the result of the analysis as .CSV file, default = FALSE; |
PlugIn |
standard plug-in estimator, default = FALSE |
size |
resampled fraction of the population, default = 1 (actual size of populations). The value should not be smaller than 10% of population (size = 0.1) |
saveBootstrap |
Saves bootstrap result to a file. Use saveBootstrap = TRUE to save bootstrap results to a Bootstrap folder in current directory; saveBootstrap = 'FolderName' - saves bootstrap results to user-named folder |
Author(s)
Christoph Sadee, Maciej Pietrzak, Michal Seweryn, Cankun Wang, Grzegorz Rempala
Maintainer: Maciej Pietrzak pietrzak.20@osu.edu
References
Rempala G.A., Seweryn M. (2013) Methods for diversity and overlap analysis in T-cell receptor populations. J Math Biol 67:1339-68
Examples
data(TCR.Data)
result <- li(x, resample = 50)