gustavo
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
|
Dear Sergei, After 6 hs of calculation using the script:
REPLACE_TREE_STRUCTURE = 1; DataSet data = ReadDataFile ("seqfile"); file1 = "treefile"; fscanf (file1,"Tree",tree); treestring=""+tree; file2 = "len"; fscanf (file2,"Number",len); lk=0; global alpha = .5; alpha:>0.01;alpha:<100; category c = (4, EQUAL, MEAN, GammaDist(_x_,alpha,alpha),CGammaDist(_x_,alpha,alpha),0,1e25,CGammaDist(_x_,alp ha+1,alpha)); for(i=0;i<len;i=i+1){ ExecuteCommands("DataSetFilter class"+i+" = CreateFilter (data,1,\""+i+"\",\"\");"); obsFreqs={20,1}; obsFreqs=0; ExecuteCommands("HarvestFrequencies (obsFreqs"+i+", class"+i+", 1, 1, 1);"); ExecuteCommands("#include \"Jones2.mdl\";"); ExecuteCommands("Model JTT"+i+" = (jones, obsFreqs"+i+",1);"); ExecuteCommands("Tree tree"+i+" = treestring;"); } lfDefCommand = ""; lfDefCommand * "LikelihoodFunction lk = (class0,tree0,"; for(i=1;i<len-1;i=i+1){ lfDefCommand * ("class"+i+",tree"+i+", "); } i=len-1; lfDefCommand * ("class"+i+",tree"+i+"); "); lfDefCommand * 0; fprintf (stdout, "\nExecuting: ", lfDefCommand, "\n"); ExecuteCommands (lfDefCommand); for(i=1;i<len;i=i+1){ ExecuteCommands("ReplicateConstraint (\"this1.?.a:=this2.?.a\",tree"+i+",tree0);"); } LIKELIHOOD_FUNCTION_OUTPUT=7; fprintf ("forsergei.out",CLEAR_FILE,lk); Optimize(params,lk); fprintf(prueba1.out,"\n jones Log(L) + F + gamma con constraints lk = ", params[1][0]);
the file "forsergei.out" contains a "0"!
Thanks very much for the answer about the estimation site-by-site. best regards,
gustavo
|