detachProcess.Sequence: Detach a Process object from a set of Site objects aggregated...

Description Usage Arguments Value Author(s) See Also Examples

Description

Detach a Process object from a set of Site objects aggregated by a Sequence object.

Usage

1
2
## S3 method for class 'Sequence'
detachProcess(this, process, index, ...)

Arguments

this

A Sequence object.

process

A Process object.

index

An integer vector specifying a set of positions. It is set to 1:seq$length if omitted.

...

Not used.

Value

The Sequence object (invisible).

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 with two processes attached
	p<-JC69()
	s<-Sequence(length=4,alphabets=list(NucleotideAlphabet()),processes=list(list(p,K80())))
	# get the list of attached processes
	s$processes
	# detach JC69 from range c(1,4)
	detachProcess(s,p,c(1,4))
	s$processes
 

phylosim documentation built on May 29, 2017, 3:21 p.m.