Description Usage Arguments Value Author(s) See Also Examples
Set the ancestral object of a Sequence object.
1 2 | ## S3 method for class 'Sequence'
setAncestral(this, value, ...)
|
this |
A Sequence object. |
value |
A Sequence or a Process object. |
... |
Not used. |
The new ancestral object (invisible).
Botond Sipos, Gregory Jordan
For more information see Sequence
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # create a nucleotide sequence and a process object
s<-NucleotideSequence(string="AGCT")
p<-Process(name="MyProcess")
# set the p as the ancestral of s
setAncestral(s,p)
s$ancestral
# clone s
cs<-clone(s)
# set cs as ancestral of s via virtual field
s$ancestral<-cs
# get ancestral ids
s$ancestral$id
cs$ancestral$id
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.