Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
How to estimate ML base freqs (Read 2233 times)
Jose_Patane
YaBB Newbies
*
Offline



Posts: 26
Brazil
Gender: male
How to estimate ML base freqs
Aug 23rd, 2006 at 9:43pm
 
Hi,

How can I estimate base frequencies from the data set and/or partition (I mean, not the empirical ones, but actually the ML estimates) with HyPhy, through the use of a Batch file? Regarding the GUI, I found out how to estimate such frequencies through the partitions menu, but it's unclear to me whether it's based on the whole dataset or on the refered partition.


Thanks in advance,

Jose_Patane
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: How to estimate ML base freqs
Reply #1 - Aug 24th, 2006 at 7:54am
 
Dear Jose,

In the GUI, base frequencies are estimated for the partition (not the whole dataset). You can force them to be the same for all partitions, by constraining frequency parameters from different partitions.

To estimate base frequencies by ML in the GUI, you need to parameterize the equilibrium frequencies vector for the model. For example, this will define a nucleotide model with frequencies estimated by ML:

Code:
/* the following is simply a way to parameterize
    base frequencies so that they are all in [0,1]
    and add up to 1, i.e. with 3 free parameters */

global P_1 = 0.5; P_1 :< 1;
global P_2 = 1/3; P_2 :< 1;
global P_3 = 1/4; P_3 :< 1;

global pi_A := P_1;
global pi_C := (1-P_1) * P_2;
global pi_G := (1-P_1) * (1-P_2) * P_3;
global pi_T := (1-P_1) * (1-P_2) * (1-P_3);

estimatedFreqs = {{pi_A}{pi_C}{pi_G}{pi_T}}; /* the vector of frequencies */

define the rate matrix here...

Model myModel = (myRateMatrix, estimatedFreqs);

Tree ...

LikelihoodFunction ....

 



HTH,
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
 
Jose_Patane
YaBB Newbies
*
Offline



Posts: 26
Brazil
Gender: male
Re: How to estimate ML base freqs
Reply #2 - Aug 24th, 2006 at 8:38am
 
Hi Sergei,

Wow, that really worked... thanks a lot!


Jose_Patane
Back to top
 
 
IP Logged