getAncestral.Sequence: Get the ancestral object of a Sequence object

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the ancestral object of a Sequence object.

Usage

1
2
## S3 method for class 'Sequence'
getAncestral(this, ...)

Arguments

this

A Sequence object.

...

Not used.

Value

A Sequence object or a Process object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

1
2
3
4
5
6
7
8
9
	# create a sequence object
	s<-Sequence(length=4)
	# get ancestral object
	getAncestral(s)	# newly created sequences have the "Root insertion process" as ancestral
	# clone sequence
	cs<-clone(s)
	# get ancestral object id via virtual field
	cs$ancestral$id
 

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