Learn R Programming

phylosim (version 3.0.5)

getRootSeq.PhyloSim: Get the root sequence aggregated by a PhyloSim object

Description

Get the root sequence aggregated by a PhyloSim object.

Usage

# S3 method for PhyloSim
getRootSeq(this, ...)

Arguments

this

A PhyloSim object.

...

Not used.

Value

The root Sequence object or NA.

See Also

For more information see PhyloSim. Sequence Process

Examples

Run this code
# NOT RUN {
	# create some objects
	sim<-PhyloSim(phylo=rcoal(3));
	seq<-NucleotideSequence(string="ATGCC");
	# set/get root sequence
	setRootSeq(sim, seq);
	getRootSeq(sim, seq);
	# set/get root sequence via virtual field
	sim$rootSeq<-BinarySequence(string="111000111000");
	sim$rootSeq;

 
# }

Run the code above in your browser using DataLab