Description Usage Arguments Value Author(s) See Also Examples
Get the template sequence object.
The template sequence object is used by the default generateBy
function
to generate insert sequences.
1 2 | ## S3 method for class 'GeneralInsertor'
getTemplateSeq(this, ...)
|
this |
A GeneralInsertor object. |
... |
Not used. |
A Sequence object or NA.
Botond Sipos, Gregory Jordan
For more information see GeneralInsertor
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.