Set the position of the Site object associated to an Event object

Share:

Description

Set the position of the Site object associated to an Event object.

The position field is usually not modified directly, but set by the getEvents.Sequence method. The position is *not* set by Site methods as getEventsAtSite.Site.

Usage

1
2
## S3 method for class 'Event'
setPosition(this, value, ...)

Arguments

this

An Event object.

value

The position.

...

Not used.

Value

The new position (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Event.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	# Note: the following example is not too useful

	# create a sequence and attach a process
	s<-NucleotideSequence(string="ATGC",processes=list(list(JC69())))
	# get the first active event from the first site
	e<-getEvents(s,1)[[1]]
	# get event position
	e$position
	# set the position of the site associated with e
	setPosition(e,2)
	# get position via virtual field
	e$position
	# set position via virtual field
	e$position<-1
	e$position
 

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