Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
GetString from model (Read 1450 times)
wayne
Global Moderator
*****
Offline


I love YaBB 1G - SP1!

Posts: 57
San Diego, CA
Gender: male
GetString from model
May 24th, 2007 at 3:12am
 
Hi Sergei, a minor bug with the GetString function. The following code Code:
nucFreqs = {{0.2}{0.3}{0.2}{0.3}};
global kappa = 1.0;
nucMatrix =	{{*, t*kappa, t, t*kappa }
			{ t*kappa, *, t*kappa,	t }
			{ t, t*kappa, *, t*kappa }
			{ t*kappa, t, t*kappa, * }};
Model nucModel = ( nucMatrix, nucFreqs, 1 );
Tree nucTree = (A,((B,((C,D),(E,F))),((G,H),(I,J))));
GetString ( ModelString, nucModel, -1 );
fprintf ( stdout, ModelString, "\n" );
 



returns  0.26*t+0.48*kappat instead of 0.26*t+0.48*kappa*t. cheers ./w
Back to top
 

Assistant Project Scientist&&Antiviral Research Center&&Department of Pathology&&University of California, San Diego
WWW WWW  
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: GetString from model
Reply #1 - May 25th, 2007 at 10:17am
 
Dear Wayne,

Fixed in today's build thanks! I plugged in some old polynomial code to do expression simplification, and forgot to undo the old shorthand (i.e. xyz instead of x*y*z).

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