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

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the root sequence aggregated by a PhyloSim object.

Usage

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

Arguments

this

A PhyloSim object.

...

Not used.

Value

The root Sequence object or NA.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see PhyloSim. Sequence Process

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# 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;

 

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