Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Pages: 1 2 
ancestral sequence reconstruction for many sets (Read 8896 times)
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
ancestral sequence reconstruction for many sets
Apr 28th, 2008 at 11:06am
 
Hello,

I am looking for a way to calculate the ancestral sequence for many independent sets of alignements in phylip format, by a reconstruction with NJ for each set and using a GY_JC codon model, in a simultaneous way.
What can I do for this?
A lot of thanks!!

Miguel.

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


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #1 - Apr 28th, 2008 at 8:47pm
 
Dear Miguel,

Do you want to fit a single model to all alignments or do you simply want to do batch ancestral state reconstruction on many files?

Also, I am not sure what the GY_JC model refers to.

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
 
David
YaBB Newbies
*
Offline


viva hyphy

Posts: 7
Vigo, Spain
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #2 - Apr 29th, 2008 at 7:40am
 
Hi,

Miguel means batch ancestral reconstruction on multiple alignments (e.g., independent replicates from a simulation study). GY-JC should be GY94xJC.

Cheers,

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


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #3 - Apr 29th, 2008 at 9:35am
 
Dear David and Miguel,

Take a look at the quick example I threw together.
Run RunMe.bf in HyPhy and feed it the test.csv file when
prompted.

Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login

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
 
David
YaBB Newbies
*
Offline


viva hyphy

Posts: 7
Vigo, Spain
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #4 - Apr 29th, 2008 at 1:01pm
 
That is awesome Sergei, as usual! many thanks!

D.
Back to top
 
 
IP Logged
 
David
YaBB Newbies
*
Offline


viva hyphy

Posts: 7
Vigo, Spain
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #5 - Apr 29th, 2008 at 11:56pm
 
Hi Sergei, this is joint ancestral reconstruction, right? D.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #6 - Apr 30th, 2008 at 12:58am
 
Dear David,

Yes; HyPhy will only do a joint ML reconstruction by default. You have to twist its arm quite a bit to obtain node-by-node reconstruction.

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
 
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #7 - May 5th, 2008 at 9:01am
 
Dear Sergei,

A lot of thanks for your help!. I just have 2 questions more:
- What node is the MRCA? is it the internal node with the lowest number?
- What methodology do you use for give numbers to the internal nodes? I cannot find a rule for that.

Cheers,
Miguel.

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


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #8 - May 5th, 2008 at 9:36am
 
Dear Miguel,

Yes, MRCA is the node with the lowest number (in almost all cases).
The rule for naming the nodes is somewhat obscure - it's the order of the node in the pre-order traversal of the tree. If you want access to a specific node, or a different naming convention for internal nodes, that is reasonably easy to do from within HyPhy. For the first case, you just give the interior node a name in the input tree, e.g. ((a,b)myNode, c...); for the second, you need to do some HBL processing of trees, but I can send you the code if you have something specific in mind.

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
 
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #9 - May 6th, 2008 at 2:00am
 
Dear Sergei,

What cases the MRCA is not the node with the lowest number? and what could I do to detect those cases?

Cheers,
Miguel


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


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #10 - May 6th, 2008 at 8:08am
 
Dear Miguel,

A more robust way to determine the MRCA (root) is to pick the first sequence from the reconstructed ancestral alignment. HyPhy always builds these sequences from the leaves up, and the root is invariable processed last, but the sequences are reported in the reversed order (root at the top, deep nodes further down).

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
 
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
Re: ancestral sequence reconstruction for many set
Reply #11 - May 8th, 2008 at 7:08am
 
Perfect. Thank you!!

Cheers,
Miguel   Cheesy
Back to top
 
WWW WWW  
IP Logged
 
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
Re: ancestral sequence reconstruction for many sets
Reply #12 - Aug 13th, 2008 at 3:48pm
 
Dear Sergei,

All my trees have an outgroup and they are rooted. I am interesting in the sequence of the penultimate most ancester node (the first descendant of the root or the MRCA of the ingroup). I attach a figure, the node that I am talking about, in this example, is the number 6.

What can I do to recognize that node in the output file?. Perhaps is the second sequence from the reconstructed ancestral alignment.

Cheers,

Miguel   Smiley
Back to top
 
WWW WWW  
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: ancestral sequence reconstruction for many sets
Reply #13 - Aug 13th, 2008 at 7:59pm
 
Dear Miguel,

The easiest (and most stable) way to do this is to name the internal node in the tree, e.g. ((0,(1,3))MRCA_Node,outgroup)

HyPhy will honor internal node labels when reconstructing ancestral sequences.

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
 
Miguel
Junior Member
**
Offline


Hi Hyphy!

Posts: 53
CBMSO, CSIC (Spain)
Gender: male
Re: ancestral sequence reconstruction for many sets
Reply #14 - Aug 14th, 2008 at 11:41am
 
Dear Segei,

That is Right.
Let me ask you for a last problem that I have with the Ancestral Sequences Reconstruction (ASR).
I have rooted trees for the ASR, like the tree that I send you in the previous message. Then, for do the ASR I must write:
Tree givenTree = treeRoot;
(where treeRoot is my rooted tree, like the tree of the previous message, and givenTree is the tree for input in the ASR).

Well, I see that givenTree is different than treeRoot, it is for the MRCA node (givenTree has the MRCA node with 3 descedants to outgroup and ingroup, it seems to be an unrooted tree). I also see that it is necessary to have a tree in the format of the "givenTree" for doing the ASR (I tried to do the ASR directly with treeRoot (I just wrote: givenTree = treeRoot) and then ASR wrote me: LF: Not a valid tree ID: givenTree).

So, my questions are:
- Is it possible to do the ASR with my rooted tree (treeRoot)?
- I am interesting in the MRCA of the ingroup (node 6 in the tree of the previous message), so, is it true to say that the sequence reconstructed of the root of "givenTree" is the same than reconstructed sequence of the ingroup MRCA "treeRoot" (node 6 is the example)?

Cheers,
Miguel
 

Back to top
 
WWW WWW  
IP Logged
 
Pages: 1 2