Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Use of partitions, just one tree? (Read 1985 times)
Jose_Patane
YaBB Newbies
*
Offline



Posts: 26
Brazil
Gender: male
Use of partitions, just one tree?
Aug 23rd, 2006 at 9:31pm
 
Hi,

I've been trying to find out how (if) is it possible to analyse different partitions on the same tree (either through GUI or a batch file)... I mean, just one branch length estimation for each branch on the very same topology, so that I could get just ONE tree based on a partitioned data set... in case it's possible, could someone depict some code snippet showing the main steps for doing that?

Thanks in advance,

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


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: Use of partitions, just one tree?
Reply #1 - Aug 24th, 2006 at 7:48am
 
Dear Jose,

Something like this ought to work.

Code:
DataSetFilter filter1 = (...);
DataSetFilter filter2 = (...);

define model, tree string here...

Tree T1 = treeString;
Tree T2 = treeString; /* same topologies */

ReplicateConstraint ("this1.?.?:=this2.?.?", T2, T1);
/* this will constrain all LOCAL (i.e. branch length
parameters in T2 to be the same as their counterparts
in T1, assuming the same model is applied to both trees.
If different models apply, additional steps are needed,
to scale parameters appropriately.
Look in messages.log to see what constraints have been
generated. */

LikelihoodFunction lf = (filter1, T1, filter2, T2);
Optimize (MLEs, lf);

etc...

 



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: Use of partitions, just one tree?
Reply #2 - Aug 29th, 2006 at 12:04pm
 
Thanks a lot, Sergei, I finally made it work!

Jose_Patane
Back to top
 
 
IP Logged