seq-gen
developed by Rambaut, A. and Grassly, N.C. (1997).seqgen(opts = NULL, rooted.tree = NULL, newick.tree = NULL,
input = NULL)
seq-gen
separated by newline, and store as a class seqgen
.
The details of output format can found on the website
seq-gen
by arguments
as input from the stdin. The options opts
is followed from the
original seq-gen
except an input tree. Input either a rooted.tree
or a newick.tree
, and
rooted.tree
should have a Class phylo
.
For examples, options commonly used in phyclust
are:
gen.seq.HKY
.Format phylip
which can be
read by read.seqgen
and transfered into an object with
Class seq.data
.Note:
seq-gen
use the order A, C, G, T.-t
is ts/tv ratio which is not equal to$\kappa$.gen.seq.HKY
andgen.seq.SNP
. Rambaut, A. and Grassly, N.C. (1997)
print.seqgen
,
read.tree
,
ms
,
gen.seq.HKY
,
gen.seq.SNP
.set.seed(123)
ret.ms <- ms(nsam = 5, nreps = 1, opts = "-T")
seqgen(opts = "-mHKY -l40 -s0.2", newick.tree = ret.ms[3])
Run the code above in your browser using DataLab