getSequences.PhyloSim: Gets all the Sequence objects associated with the nodes of a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Gets all the Sequence objects associated with the nodes of a phylo object aggregated by a PhyloSim object.

The order of the Sequence objects in the returned list reflects the identifiers of the associated nodes.

Usage

1
2
## S3 method for class 'PhyloSim'
getSequences(this, ...)

Arguments

this

A PhyloSim object.

...

Not used.

Value

A list of sequence objects.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see PhyloSim.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	# Create a PhyloSim object.
	# Provide the phylo object
	# and the root sequence.
	sim<-PhyloSim(
		name="TinySim",
		phylo=rcoal(3),
		root.seq=NucleotideSequence(string="ATG",processes=list(list(JC69())))
	);
	# run the simulation
	Simulate(sim)
	# get all the associated sequence objects
	getSequences(sim)
	# get the sequence associated with node 3
	# via virtual field
	sim$sequences[[3]]
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.