idHomodimers <- function(bpGraph){
eL <- edges(bpGraph)
nodes <- names(eL)
homodimers <- mapply(function(x,y) x%in%y, nodes, eL)
homodimers <- homodimers[homodimers]
#print(length(homodimers))
return(names(homodimers))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.