Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
SUPPORT_MATRIX_LIST (Read 1296 times)
wayne
Global Moderator
*****
Offline


I love YaBB 1G - SP1!

Posts: 57
San Diego, CA
Gender: male
SUPPORT_MATRIX_LIST
Dec 14th, 2007 at 7:19am
 
Hi Sergei, a really simple question but how do i get the contents of SUPPORT_MATRIX_LIST into an indexed array? thanks ./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: SUPPORT_MATRIX_LIST
Reply #1 - Dec 16th, 2007 at 3:55pm
 
Dear Wayne,

SUPPORT_MATRIX_LIST is an associative array with indices 0..N-1 where N is the number of data partitions in the likelihood function which ReconstructAncestors was called on. To get the matrix for the first partition just use:

Code:
STORE_ROOT_SUPPORT		= 1;
DataSet ancestralStates = ReconstructAncestors (lf);
fprintf (stdout, SUPPORT_MATRIX_LIST); /* associative array */
statesFor1stPartition = SUPPORT_MATRIX_LIST[0];
/* an SxC matrix; S = number of sites; C is the number of characters in the alphabet (4 for nucleotides) */

 



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