Description Usage Arguments Value Author(s) See Also Examples
Clone a Sequence object.
The cloning of Sequence objects involves the cloning of all aggregated Site objects. Because of that the cloning of long sequences is quite expensive. The cloned Site objects have the orginal Site objects as ancestral. The new Sequence objects has the original object as ancestral.
1 2 | ## S3 method for class 'Sequence'
clone(this, ...)
|
this |
A Sequence object. |
... |
Not used. |
A Sequence object.
Botond Sipos, Gregory Jordan
Sequence clone.Object
1 2 3 4 5 6 7 8 9 10 | # cretate a nucleotide sequence
s<-NucleotideSequence(string="ATG")
# clone the sequence
cs<-clone(s)
# get some properties
equals(s,s)
equals(s,cs)
cs$ancestral
cs$sites[[1]]$ancestral
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.