topology <- function(fits){
ngene <- nrow(fits[[1]]$parents)
nexp <- length(fits[[1]]$trajectories)
grph <- matrix(0, nrow=ngene, ncol=nexp)
for(k in 1:length(fits)){
gtmp <- t(fits[[k]]$parents + 1)
for(j in 1:ncol(gtmp)){
grph[j, gtmp[,j]] <- grph[j, gtmp[,j]] + 1
}
}
cgrph = grph / length(fits)
return(cgrph)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.