Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
How to run GARD using MPI install? (Read 4403 times)
gregonomic
YaBB Newbies
*
Offline


I know perfectly well
I'm not where I should
be.

Posts: 5
Cambridge, UK
Gender: male
How to run GARD using MPI install?
Nov 6th, 2007 at 6:08am
 
Hi HyPhy.

I've tried searching through the discussion board, as well as the HyPhy documentation, but can't find the answer to this question: what is the best way to run a GARD analysis using an MPI install of HyPhy?

(1) Modify the existing GARD.bf so that it loads/contains the appropriate data (sequences, trees, models, etc);

(2) Write a new batch file that contains the data and call the GARD.bf from that;

(3) Run the existing GARD.bf and pass data as arguments.

Cheers.

Greg.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: How to run GARD using MPI install?
Reply #1 - Nov 6th, 2007 at 9:12am
 
Dear Greg,

I would suggest using (2) or (3). You can take a look at Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login for an example of how to write wrapper files. If you want to use (3), you can try the following mechanism to pass arguments via a command line:

First, enumerate all the necessary options and generate their values.
Second, call (this works in sh and bash)

Code:
$(echo option 1; echo option 2; .... echo last option) | mpirun -np xx /pathto/HYPHYMPI /pathto/HYPHY/TemplateBatchFiles/GARD.bf
 



replacing options X placeholders with actual values and using an appropriate MPI syntax for your install. Note that this trick only works if you can run interactive MPI jobs through the shell; if not try (2).

After the analysis is finished, run GARDProcessor.bf (standard analyses: recombination) on the output file generated by GARD.

Cheers,
Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
gregonomic
YaBB Newbies
*
Offline


I know perfectly well
I'm not where I should
be.

Posts: 5
Cambridge, UK
Gender: male
Re: How to run GARD using MPI install?
Reply #2 - Nov 7th, 2007 at 1:02am
 
Thanks Sergei.

I'd missed that post when I was looking through the Discussion Board. I will have to go for option (2), I guess, since the only way I can submit jobs to the MPI HyPhy on our cluster is using bsub commands.

However, this poses another problem - since I don't have a GTK MPI version of HyPhy, I can't go through the inititial stages of setting up a GARD run (it quits with the message "[ERROR] This analysis requires an MPI environment to run"). Is there another way of finding out what the input options are? It's not clear, at least not to me, from the GARD.bf.

Thanks again.

Greg.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: How to run GARD using MPI install?
Reply #3 - Nov 7th, 2007 at 12:47pm
 
Dear Greg,

Good point about an MPI environment error, I forgot about that.
The GARD sequence is as follows:

  • Which alignment to screen? (path)
  • Which nucleotide biases to use? (e.g. 010010 - a 6 char string)
  • Rate variation: select from (case sensitive)
    • None - Homogeneous rates across sites (fastest)
    • General Discrete - General discrete distribution on N-bins
    • Beta-Gamma - Adaptively discretized gamma N-bins. Try is GDD doesn't converge well, or if you suspect a lot of rate classes and do not want to overparameterize the model
  • If other than None chosen above, enter the number of rate classes (a number in 2-32 range)
  • Where to save the results? (path)


Cheers,
Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
gregonomic
YaBB Newbies
*
Offline


I know perfectly well
I'm not where I should
be.

Posts: 5
Cambridge, UK
Gender: male
Re: How to run GARD using MPI install?
Reply #4 - Nov 8th, 2007 at 3:51am
 
Cheers Sergei.

I've got it working now ... and it's fast!

But the GARDProcessor.bf is taking a while - can/does it utilise multiple processors?

Once again, thanks for your prompt and helpful responses.

Greg.
Back to top
 
 
IP Logged