| Seq-class | R Documentation |
"Seq"The Seq class implements a nucleic acid sequence as well as
various sequence transformations. It's aim is to illustrate the usage
of reference classes.
All reference classes extend and inherit methods from
"envRefClass".
id:Object of class character defining the
sequence identifier.
alphabet:Object of class character defining
the sequence alphabet.
sequence:Object of class character with the
actual sequence string.
transcribe():Transcribes a DNA sequence into RNA.
seq():Retuns the sequence string.
comp():Complements the sequence.
rev():Reverses the sequence.
valid():Checks sequence validity.
setAlphabet():Sets the sequence alphabet.
show():Shows the 'Seq' instance.
Laurent Gatto
DnaSeq for a S4 implementation of the same subject.
s <- Seq$new(id = "My sequence",
sequence = "AGCAGCTACGACT",
alphabet = c("A","C","G","T"))
s
s$rev()
s
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.