HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
Methodology Questions >> How to >> simulation form an ancestral sequence
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1161701414

Message started by ofedrigo on Oct 24th, 2006 at 7:50am

Title: simulation form an ancestral sequence
Post by ofedrigo on Oct 24th, 2006 at 7:50am
hi,

I have a dataset from which I estimate my ML parameters. I would like to simulate many dataset from it but starting from the ancestral sequence of my original dataset. How does the simulatedataset function work? does it start from a random sequence with a similar base frequency or does it start from the most ancestral sequence of the original dataset? is there a way to do specifiy these two options?

thanks,

Olivier

Title: Re: simulation form an ancestral sequence
Post by Sergei on Oct 24th, 2006 at 11:21am
Dear Olivier,

At the end of your analysis (or after you've reloaded a fit), you will have a tree with attached models to simulate from (call it myTree).

The function you want is Simulate. You may need to tweak the characters option if your data is not nucleotides. Take a look at the documentation of the 'Simulate' command.

[code]
characters = ["A","C","G","T"}
                     {"1","","",""];


DataSet sim = Simulate (myTree,eqf,characters,ancestralString);
[/code]

ancestralString will be where you pass your root sequence, and eqf is the vector of base frequencies (which won't be used if you pass an actual string as the 4th argument).

Cheers,
Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.