Set the template sequence object

Share:

Description

Set the template sequence object. The template sequence object is used by the default generateBy function to generate insert sequences.

Usage

1
2
## S3 method for class 'GeneralInsertor'
setTemplateSeq(this, value, ...)

Arguments

this

A GeneralInsertor object.

value

A Sequence object.

...

Not used.

Value

The Sequence object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralInsertor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
	# create a GeneralInsertor object
	i<-GeneralInsertor(
		rate=0.5,
		propose.by=function(process){sample(c(5:10),1)}, # inserts between 5 and 10
		template.seq=NucleotideSequence(string="AAAAAAA")
	)
	# get template sequence
	getTemplateSeq(i)
	# get template sequence via virtual field
	i$templateSeq
	# set template sequence
	setTemplateSeq(i, NucleotideSequence(string="C"));
	# generate insert
	generateInsert(i)
	# set template sequence via virtual field
	i$templateSeq<-NucleotideSequence(string="G")
	# generate insert
	generateInsert(i)
 

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