GenericSeq-class | R Documentation |
This virtual class defines a generic sequence object composed by an identifier, a sequence and an alphabet that defines the letters of the sequence. A set of accessor methods and setters are described below.
A virtual Class: No objects may be created from it.
id
:Object of class "character"
that identifies
the sequence
instance.
alphabet
:Object of class "character"
that
defines all the letters that a valid sequence
can be made
of.
sequence
:Object of class "character"
storing
the actual sequence string of the sequence
instance.
signature(object = "GenericSeq")
: retrieves
the alphabet of valid sequence letters, returned as
characher
.
signature(object = "GenericSeq")
: retrieves the
identifier of the sequence
instance.
signature(object = "GenericSeq", value =
"character")
: sets the identifier of the sequence
instance to value
.
signature(x = "GenericSeq")
: returns the length
the sequence
instance, i.e. the number of characters of the
sequence
string.
signature(x = "GenericSeq")
: prints the
sequence
of the instance.
signature(x = "GenericSeq")
: return the reverse of
the sequence
string of the sequence
instance.
signature(... = "GenericSeq")
: returns the
sequence
character string of the instance.
signature(object = "GenericSeq", value =
"character")
: changes the sequence
string of the
sequence
instance to value
. The new string must be
compatbile with the sequence
instance alphabet.
signature(object = "GenericSeq")
: displays the
object content.
signature(x = "GenSeq")
: Subsets the sequence of
x
and returns the correspong subsetted object of same class
as x
.
Laurent Gatto
See DnaSeq
and RnaSeq
classes for examples of subclasses and readFasta
on how to create instances.
showClass("GenericSeq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.