Skip to content

Instantly share code, notes, and snippets.

View pitakakariki's full-sized avatar

Peter Green pitakakariki

View GitHub Profile
@pitakakariki
pitakakariki / gsi.R
Created July 25, 2012 02:11 — forked from dwinter/gsi.R
calculate gsi in R
#calculate Cummings et al (2008) _gsi_ - a meaure of the exlusivity of a
#predefiend group of leaves in a phylogenetic tree
#example
#
# tr <- rtree(10)
# grp <- paste("t", 1:5, sep="")
# gsi(tr, grp)