Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

What is Migrate, and how do I use it on Quarry?

Note: Following a system-wide upgrade in December 2012, Quarry now runs Red Hat Enterprise Linux version 6 (RHEL 6) and uses the Modules package (instead of SoftEnv) for manipulating user environments. For more, see Information about the 2012 upgrade to Quarry at IU. If you encounter any problems or have questions, email the High Performance Systems group.

Migrate is genome analysis software that applies maximum likelihood estimation and Bayesian inference to genetic data to estimate populations size and migration parameters. For more, see the Migrate home page and the Migrate documentation (in PDF format).

At Indiana University, Migrate is available in serial and parallel versions on Quarry.

If the Intel Compiler Suite is not already added to your environment on Quarry, you must add it before you can use Migrate; at the command prompt, enter:

module load intel

To add the serial version to your environment, from the command line, enter:

module load migrate/intel/serial

To make permanent changes to your environment, edit your ~/.modules file. For more, see In Modules, how do I save my environment with a .modules file?

Example data sets are available on Quarry at:

/N/soft/rhel6/migrate/migrate-3.3.2/example

If your job will run for fewer than 20 minutes, run migrate-n from the command line in the directory where your input files are located.

If your job will take longer than 20 minutes, you can run an interactive Migrate program as a batch job by creating a file that contains the options you need to pass. To do so, create a text file that contains your options, one option per line, or combine all the options on the command line and pipe them to Migrate.

For example, if the default option is  Y  , which you need to enter to keep the Migrate program running, your option file would have only one line, containing the letter  Y . If you name the text file optionfile, an example TORQUE script (migrate.job) would be:

#PBS -l ncpus=1 #PBS -l mem=1GB #PBS -l cput=1:00:00 #PBS -e log.err #PBS -o log.out #PBS -m abe cd $PBS_O_WORKDIR cat optionfile | migrate-n parmfile.testml

To submit your script (migrate.job) to TORQUE, at the command prompt, enter qsub migrate.job

Output that Migrate would normally print to the screen is stored in the outfile-ml and outfile-ml.pdf files.

Alternatively, you can echo the option and pipe it to Migrate:

/bin/echo "Y\n" | migrate-n parmfile.testml

To pass a series of options, add  \n  (new line) to each option, which separates them onto different lines:

/bin/echo "Y\nD\n3\nY\n" | migrate-n parmfile.testml'

To use the parallel version, you must first add the Open MPI libraries to your environment; from the command line, enter:

module load openmpi/intel

Then, load the parallel Migrate module:

module load migrate/intel/mpi

For running a Migrate job in parallel, an example TORQUE script (migrate_parallel.job) would be:

#PBS -l ncpus=7 #PBS -l mem=1GB #PBS -l cput=1:00:00 #PBS -e log.err #PBS -o log.out #PBS -m abe cd $PBS_O_WORKDIR mpirun -np 7 -machine $PBS_NODEFILE migrate-n-mpi parmfile.testbayes

Quarry is supported by the UITS High Performance Systems group. If you have system-specific questions about Quarry, email High Performance Systems. If you have questions about compilers, programming, scientific/numerical libraries, or debuggers, email Scientific Applications and Performance Tuning.

This is document axnz in domain all.
Last modified on May 28, 2013.

I need help with a computing problem

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.



Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

I have a comment for the Knowledge Base

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.