-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run the simulations #61
Comments
@rozeykex Should work -- can also use a BASH loop, I think. |
Noting here what we discussed today about the simulations we'll run @bradduthie (once I've found the sweet spot for the NULL simulations I'll let you know here too).
Consider varying |
Hi @bradduthie, I'm starting to get some data in now. Haven't got as many runs in over the weekend as I wanted, but I think I've got a good stable NULL point now that doesn't take too long to run. I've saved it here as a script you can run with Seed survival seems to be the key parameter I've had to tweak gently to get population levels right. In my tests, over the weekend, I had this a little higher at 0.535 and all 4 sims got to 100 nicely but it looked like some were about to boom and go wild. The set of data I pushed yesterday was with that set a little lower (0.5325) and there was too much extinction. I have some running right now at 0.534 and they seem to be doing well I've got 1 of 2 sims that have reached 200. |
Hi @rozeykex -- sounds good. I'll start processes of this in parallel and see how it goes! |
Oh, @bradduthie! I should also have said: I have |
Ah! @rozeykex I was actually just copying the whole directory locally four times and running in parallel to get the data. Should I also try a 5:7 assigned to |
Yep! @bradduthie I've made it so it outputs everything pretty neatly. Rather than copying the folder many times, to run many in parallel you could just copy the simulations file and have different values assigned to runs. Then all the output will just organise itself within the analysis/data/ folder. |
@rozeykex Okay, cool! Do I just need to change The local version is running fine -- Simulation 3 Generation 108. |
@bradduthie sorry, been away from the computer! Yep. That will make sure the .rds files and log .txts that you push are all named differently to mine. The data objects reference the logs that go with them. |
@rozeykex Okay, will start on this tomorrow morning! |
… the analysis.R file to try and use a cutom function that should automatically export pdf files for a couple of plots (see the 2 already in analysis/plots/population-size/ for what they would look like). However, it just saves empty pdf files and gives no errors. Am I missing something obvious about pdf() and dev.off()?
@bradduthie I've added runs 8:11 and set 12:15 going with a bit higher seed survival. |
Notes from today's meeting with Mario:
From logs, current |
Hi @bradduthie, welcome back. I'm starting to get some data on the sims that test everything individually. I've been away for the weekend so getting my head properly in the literature for the realistic system now too. Please feel free to run any of the scripts in the costs/benefits folder in /simulations. If you set runs > 5 then the files we push shouldn't overlap. I think costs/triploid_mum_prob/sterility-200.R has the most tests in and I might be running a risk of not completing all of them. It might be even better if you run tests in reverse order? - let me know if you want me to set up some scripts like that.
|
Hi @rosemckeon -- good to be back! Okay, I've pulled the branch 'rose' and will start running some simulations. I'll set |
@bradduthie great! I'll push some scripts for you now, with the sims all running back to front, and tag you in the commit. I'll set up the run numbering too. I've found when the processes get killed early it's usually due to lack of memory rather than processing power. This whole thing has got me looking at 32GB RAM upgrades.... |
@rosemckeon Whoa! That is quite memory heavy. Too late for this now I suspect, but if you build on these simulations for a future project, it might make sense to get rid of unused memory during the simulation (e.g., by printing prior generations to a file, then removing them from the R environment). The I've got 16 GB to work with here. I'll start with one run to see how things look, then start trying everything in parallel. |
…se go and let me know if you can run anymore
@bradduthie I was wondering if there was something I could do differently like splitting the files up into smaller chunks! I don't really want to risk breaking things by attempting last minute speed improvements but it's tempting... I'll definitely take a look at |
@bradduthie I've got 16GB on the server and it manages 4 in parallel most of the time, with occasional process deaths. |
@rosemckeon Yeah, splitting files into chunks is often a good solution. I typically try to avoid storing information (e.g., old individuals) that is no longer needed in the working memory. I agree that it's probably not worth the work and risk at this point, so no worries. We should be good with some simulations on both your server and my desktop(s)! The |
@bradduthie So I can just do |
@rosemckeon Yeah, I think that this should work. I think that R does this automatically to some extent, but it might help a bit. |
@bradduthie done :) Can you let me know if it helps enough to interrupt my simulations and start them again? I don't really have the free memory at the moment to test it. |
@rosemckeon Will do! Just pulled and am now running 'inbreeding-200-brad.R'. Will give it a few minutes, then run the other two scripts. |
@rosemckeon Now running |
… plot to compare disturbance levels and growth benefit #61
These are happily ticking along now and managed in another repo. |
May be worth looking at how to schedule these on the server by making a repeating job that sets itself going again once complete.
https://stackoverflow.com/questions/18306362/run-r-script-from-command-line
https://linux.die.net/man/1/rscript
https://www.interserver.net/tips/kb/task-scheduling-linux-command-line/
https://www.taniarascia.com/how-to-create-and-use-bash-scripts/
https://askubuntu.com/questions/8653/how-to-keep-processes-running-after-ending-ssh-session
The text was updated successfully, but these errors were encountered: