# NOT RUN {
m <- get.resid(all.thick, covars)
myPerms <- shuffleSet(n=nrow(m$resids.all), nset=1e3)
out <- brainGraph_permute(densities, m$resids.all, perms=myPerms, atlas='dk')
out <- brainGraph_permute(densities, m$resids.all, perms=myPerms,
level='vertex')
out <- brainGraph_permute(densities, m$resids.all, perms=myPerms,
level='other', .function=myFun)
# }
Run the code above in your browser using DataLab