getSeqFromNode.PhyloSim: Get the Sequence object associated with a given node of a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the Sequence object associated with a given node of a phylo object aggregated by a PhyloSim object.

Usage

1
2
## S3 method for class 'PhyloSim'
getSeqFromNode(this, node=NA, ...)

Arguments

this

A PhyloSim object.

node

Node identifier.

...

Not used.

Value

A Sequence object.

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
	# 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())))
	);
	# get the sequence associated with node 5
	getSeqFromNode(sim,5)	# Should be NA
	# Run the simulation
	Simulate(sim)
	# try again
	getSeqFromNode(sim,5)
 

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