View source: R/Simulate.GeneTrees_From_SpeciesTree2.R
Simulate.GeneTrees_From_SpeciesTree2 | R Documentation |
This function returns a list of simulated gene trees that have been generated for a given input species tree
Simulate.GeneTrees_From_SpeciesTree2( handle.SpeciesTree, numeric.NumberOfGeneTrees, string.PathDir )
handle.SpeciesTree |
Phylo object of the input species tree |
numeric.NumberOfGeneTrees |
Numeric number of gene trees to simulate |
string.PathDir |
String of the path to a parent directory that will be used for simulating gene trees |
handle.SimulatedGeneTrees List of simulated gene trees
################ # Load depends # ################ library(SpeciesTopoTestR) library(ape) ################################# # Generate example species tree # ################################# handle.SpeciesTree <- read.tree(text = "(A:1.0,(B:0.5,(C:1.0,D:1.0):1.5):0.5);") ##################################################### # Simlate a set of gene trees for this species tree # ##################################################### Simulate.GeneTrees_From_SpeciesTree2(handle.SpeciesTree = handle.SpeciesTree, string.PathDir = '~/Desktop/', numeric.NumberOfGeneTrees = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.