Back to Home | Research | Software


Hugin version (KinMix)

Install: R Rtools toolchain (Windows only), Hugin Expert, and then within R install packages as follows:
Install devtools install.packages("devtools")
Install dependencies of RHugin
if (!require("BiocManager")) install.packages("BiocManager")
BiocManager::install(c("graph","Rgraphviz"))
Install RHugin devtools::install_github("huginexpert/rhugin")
If necessary, install dependencies of DNAmixtures install.packages(c("Rsolnp", "Matrix", "numDeriv"))
Install DNAmixtures install.packages("DNAmixtures", repos = "http://dnamixtures.r-forge.r-project.org/", type = "source", INSTALL_opts = "--no-multiarch")
Install dependencies of KinMix install.packages(c("ribd","statnet.common"))
If simulation of epg's is required, install pcrsim package and its dependencies, especially gWidgets See here
Install KinMix devtools::install_github("petergreen5678/KinMix")
OR, on Windows, in case only have Hugin for one architecture devtools::install_github("petergreen5678/KinMix",INSTALL_opts="--no-multiarch")

Once installed, to get started....

library(KinMix)
demo(KMdemo)

gRain version (KinMixLite)

KinMixLite is available on CRAN, so can be installed using install.packages("KinMixLite"), or go to CRAN explicitly at https://cran.r-project.org/package=KinMixLite

If the installation fails because of missing dependencies, the full procedure is as below:

Install: R Rtools toolchain (Windows only) and then within R install packages as follows:
Install devtools, etc install.packages(c("devtools", "methods", "rlang"))
Install dependencies of gRain and gRain itself if (!require("BiocManager")) install.packages("BiocManager") BiocManager::install(c("graph","Rgraphviz")) BiocManager::install(c("gRbase","gRain"), force=TRUE)
If simulation of epg's is required, pcrsim package and its dependencies, especially gWidgets See here
Install KinMixLite (this automatically includes installing gRaven, DNAmixturesLite and dependencies if not already present) install.packages("KinMixLite")


Once installed, to get started....

library(KinMixLite)
demo(KMdemo)