# \dontshow{
D <- simgeno(p=20, n=10, k= 3, adjacent = 1, alpha = 0.06 , beta = 0.3)
out <- netsnp(data = D$data, n.rho= 2, ncores= 1)
plot(out)
sel <- selectnet(out, criteria = "ebic")
# }
# \donttest{
#simulate data
D <- simgeno(p=50, n=100, k= 3, adjacent = 3, alpha = 0.06 , beta = 0.06)
plot(D)
#explore intra- and inter-chromosomal interactions
out <- netsnp(D$data, n.rho= 5, ncores= 1)
plot(out)
#different graph selection methods
sel.ebic1 <- selectnet(out, criteria = "ebic")
plot(sel.ebic1, vis = "CI")
sel.aic <- selectnet(out, criteria = "aic")
plot(sel.aic, vis = "CI")
sel.bic <- selectnet(out, criteria = "ebic", ebic.gamma = 0)
plot(sel.bic, vis = "CI")
# }
Run the code above in your browser using DataLab