geneUsage.distance(geneUsage.tab=NULL, names=NULL, method=c("bc","jaccard", "cosine"), cutoff=0)
For explanation of Bray-Curtis and Jaccard index see vegdist
.
For explanation of cosine index see dist
.
When using Jaccard index, a cutoff for gene proportions can be given. Proportions will be transformed into absence/presence data (<= cutoff;=""> cutoff) and afterwards Jaccard indices are calculated. =>
Levandowsky, Michael; Winter, David (1971), "Distance between sets", Nature 234 (5): 34-35
Graham L. Giller (2012). "The Statistical Properties of Random Bitstreams and the Sampling Distribution of Cosine Similarity". Giller Investments Research Notes (20121024/1)
Jari Oksanen, F. Guillaume Blanchet, et al. (2015). vegan: Community Ecology Package. R package version 2.3-1. https://CRAN.R-project.org/package=vegan David Meyer and Christian Buchta (2015). proxy: Distance and Similarity Measures. R package version 0.4-15. https://CRAN.R-project.org/package=proxy
dist.PCoA
, plotDistPCoA
, sequences.distance
data(vgenes) # VH gene proportions of 10 samples (rows) and 30 VH genes (columns)
disttab<-geneUsage.distance(geneUsage.tab = vgenes, method = "bc")
Run the code above in your browser using DataLab