| 1 | == Migrate-N == |
| 2 | |
| 3 | The software and instructions can be found on: http://popgen.sc.fsu.edu/Migrate/Info.html |
| 4 | |
| 5 | === Mykopat Grid specifics === |
| 6 | |
| 7 | Since Migrate-N can utilise multiple cores/computers when calculating migration rates, there are some specifics to keep in mind when running it in parallel. The basic workflow will be something like this (completely untested by me/MBD): |
| 8 | 1. Start migrate-n by typing ```migrate-n my_params.txt``` |
| 9 | 1. Using the menus in migrate and the manual, set all parameters for your run, but DO NOT start the run. |
| 10 | 1. Save the param file, theres a menu option for that. |
| 11 | 1. Create a batch file used to submit the job to the grid. An example can be found at the bottom of the page. Request a small amount of memory per slot (1GB should be enough), but enough runtime for finishing the run. |
| 12 | 1. Submit the job with ```qsub my_batch_file``` and wait for an email telling you first that the job started to run, and then yet another when the run is done. |
| 13 | 1. Check the log files (job_name.oNNN and job_name.eNNN) to ensure that everything went well. |
| 14 | 1. If you need to rerun, start over from the top of this list, but the batch file can be reused. |
| 15 | |
| 16 | {{{ |
| 17 | #!/bin/sh |
| 18 | # Sample batch file for migrate. Put this in a plain text file calle, for example migrate_batch and call it with qsub migrate_batch |
| 19 | |
| 20 | # Ensure the environment is correct |
| 21 | #$ -V |
| 22 | #$ -cwd |
| 23 | |
| 24 | # Ask for a mail at beginning, end and if the job is aborted |
| 25 | #$ -m bea |
| 26 | |
| 27 | # We want to run migrate on 6 slots/cores, this number should ideally be number of loci + 1. |
| 28 | # However, there is currently a system limit at 8. The more you ask for, the longer it usually |
| 29 | # takes before your job is started. |
| 30 | #$ -pe openmpi 6 |
| 31 | |
| 32 | # We want the system to allocate 5 hours run time to migrate, and 1G of ram per slot |
| 33 | #$ -l h_rt=5:0:0,h_vmem=1G |
| 34 | |
| 35 | |
| 36 | # Change my_parm_file to the name of your param_file |
| 37 | mpirun migrate-n-mpi my_parm_file -nomenu |
| 38 | }}} |
| 39 | |