Hi all,
I am coming to a problem with running STRUCTURE analysis using gl.run.structure command with DArT package.
I firstly convert my data (9K samples with 27K SNPs) in vcf format to genlight object
Then used the script below to run the STRUCTURE analysis in window system (32 RAM memory)
library(dartR)
gl11b <- readRDS("mygenlightdata.RDS")
sr <- gl.run.structure(
gl11b,
k.range = 2:10,
num.k.rep = 10,
burnin = 10000,
numreps = 100000,
noadmix = FALSE,
exec = "D:/Essaie/structure.exe",
plot.out = TRUE,
save2tmp = TRUE)
Unfortunately, I am getting the following output:
Reading file "gtypes.created.on.2023-06-07.12.14.28.structureRun/gtypes.created.on.2023-06-07.12.14.28.structureRun.k1.r1_mainparams".
datafile is
gtypes.created.on.2023-06-07.12.14.28.structureRun/gtypes.created.on.2023-06-07.12.14.28.structureRun.k1.r1_data
Reading file "gtypes.created.on.2023-06-07.12.14.28.structureRun/gtypes.created.on.2023-06-07.12.14.28.structureRun.k1.r1_extraparams".
Note: RANDOMIZE is set to 1. The random number generator will be initialized using the system clock, ignoring any specified value of SEED.
Error in assigning memory (not enough space?)
Exiting the program due to error(s) listed above.
Error in FUN(X[[i]], ...) :
Error running STRUCTURE. Error code 1 returned.
Pls Any ideas as to what I can fix would be really appreciated!!
Thanks,
Arnaud
Hi Arnaud,
Based on your folder name I assume you are running this on Windows. There is a memory limitation on R on Windows (less so on Linux/Macos), hence I assume you need to use a different OS, or you may try to increase memory using R mechanism (memory.limit()) , but this is no longer supported after R 4.2 if I am not mistaken.
So most likely you need to shift to a Linux based R.
Cheers, Bernd
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dartr/d0e533c8-2006-41a2-a5c3-54e423643384n%40googlegroups.com.
Hi Jose,
I would try to run a subset of your data set first (e.g. only 100 loci to see if it works).
But Luis is right most likely you would need to run it on a cluster or fun faststructure with is faster (but different though the name indicates it is the same).
Cheers, Bernd
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
From: da...@googlegroups.com <da...@googlegroups.com> On Behalf Of Jose Luis Mijangos
Sent: Thursday, 8 June 2023 12:27
To: dartR <da...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/f5035157-e154-4536-bf8f-0eab3fbe67abn%40googlegroups.com.
Hello Luis and Bernd,
Thank you for all the suggestions you have given me to solve the
problem,
I will try to use the FastStructure program.
Cheers,,
Arnaud
--
You received this message because you are subscribed to a topic in the Google Groups "dartR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dartr/-lbeVqV-ofc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/f5035157-e154-4536-bf8f-0eab3fbe67abn%40googlegroups.com.
Hi,
Assuming you are running structure under windows you need to provide the full path to the exe file e.g.
D:/research/Avocado/GBS-Avocado/STRUCTURE/structure.exe
If under macos or linux you need to do
./research/Avocado/GBS-Avocado/STRUCTURE/structure
Then it should run,
Cheers, Bernd
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dartr/15d7c1be-1664-423c-9201-9dee3dae2210n%40googlegroups.com.