I am using the GeneOverlap package which gives a hypergeometric overlap between two lists of lists. Particularly I am using the newGOM and getMatrix
newGOM
getMatrix