Software clustNet available on CRAN Network-based clustering using a Bayesian network mixture model with optional covariate adjustment. SGS available on github R package for inference and marginalization in Bayesian networks