Hello,
I have been running Structure in R and thought everything was running okay (for a few months). I can plot evanno and view the gl.plot.structure plots fine using the below code.
structure_north_noadmix1 <- gl.run.structure(subsampled_north1, k.range = 1:10, num.k.rep = 5, exec = 'C:/Users/errus/Desktop/structure/structure.exe', noadmix=TRUE, burnin = 10000, numreps = 10000)
# Round 1: evanno plots
gl.evanno(structure_north_noadmix1)
# Round 1: view STRUCTURE plot - change k for different results
gl.plot.structure(structure_north_noadmix1, K=10, clumpak = FALSE)
It wasn't until yesterday that I wanted to start making plots for publication that I realised I am not getting the correct output files saved on my computer. I only had three saved to the working directory on a rerun yesterday, these were:...structureRun.k1; ...r1_extraparams and ....r1_mainparams.
I read that maybe this was because I should be saving directly into the structure folder (where the executable is) on my desktop, so I changed this but then I got no output at all. I cannot find any more 'gtypes' file folders on my computer, other than those created in March back when I first started using the program.
I do get this error when I looked to see if the program was executing properly:
system("C:/Users/errus/Desktop/structure/structure.exe", intern = TRUE) [1] ""
[2] ""
[3] "----------------------------------------------------"
[4] "STRUCTURE by Pritchard, Stephens and Donnelly (2000)"
[5] " and Falush, Stephens and Pritchard (2003)"
[6] " Code by Pritchard, Falush and Hubisz"
[7] " Version 2.3.4 (Jul 2012)"
[8] "----------------------------------------------------"
[9] ""
[10] ""
[11] "Can't open the file \"mainparams\"."
[12] ""
[13] "Exiting the program due to error(s) listed above."
[14] ""
attr(,"status")
[1] 1Warning message:
In system("C:/Users/errus/Desktop/structure/structure.exe", intern = TRUE) :
running command 'C:/Users/errus/Desktop/structure/structure.exe' had status 1
Hoping you can help. I did try "delete.files = FALSE" that I saw in another question on here but I got an error.
Thank you,
Emily