R/overlap.R

Defines functions overlap

overlap <- function(df,x, y) {
  x <- unlist(x)
  y <- unlist(y)
  length(intersect(x, y))/length(unique(c(x,y)))
}
guokai8/Enrichr documentation built on May 16, 2020, 10:24 p.m.