Get the ancestral object of a Sequence object

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
 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.