Closed vmglynn closed 2 years ago
Dear Eric,
Thank you for creating strataG, it is a wonderful tool.
I am trying to run STRUCTURE via your package, but I am encountering the following error:
Error in FUN(X[[i]], ...) : Error running STRUCTURE. Error code 1 returned.
Briefly, I first converted my genlight object into a gtypes object, and ran the following code for STRUCTURE mirroring the vignette's:
library(strataG)
gtypes <- genlight2gtypes(gl.rubi)
gtypes
Sys.setenv(PATH = paste("C:\Program Files (x86)\Structure2.3.4", Sys.getenv("PATH"), sep = ";"))
set.seed(1804)
sr <- structureRun(gtypes, k.range = 1:6, num.k.rep = 6)
I could not find what this error refers to, so any further guidance would be much appreciated. Thank you in advance!
After some tinkering, STRUCTURE ran when I amended the path as follows:
Sys.setenv(PATH = paste("C:\Program Files (x86)\Structure2.3.4\bin", Sys.getenv("PATH"), sep = ";"))
Dear Eric,
Thank you for creating strataG, it is a wonderful tool.
I am trying to run STRUCTURE via your package, but I am encountering the following error:
Error in FUN(X[[i]], ...) : Error running STRUCTURE. Error code 1 returned.
Briefly, I first converted my genlight object into a gtypes object, and ran the following code for STRUCTURE mirroring the vignette's:
library(strataG)
gtypes <- genlight2gtypes(gl.rubi)
gtypes
Sys.setenv(PATH = paste("C:\Program Files (x86)\Structure2.3.4", Sys.getenv("PATH"), sep = ";"))
set.seed(1804)
sr <- structureRun(gtypes, k.range = 1:6, num.k.rep = 6)
I could not find what this error refers to, so any further guidance would be much appreciated. Thank you in advance!