BStringSet
object with an XStringQuality
object. Similarly, the QualityScaledDNAStringSet (or QualityScaledRNAStringSet, or
QualityScaledAAStringSet) class is a container for storing a DNAStringSet
(or RNAStringSet
, or AAStringSet
) objects with
an XStringQuality
object.
## Constructors:
QualityScaledBStringSet(x, quality)
QualityScaledDNAStringSet(x, quality)
QualityScaledRNAStringSet(x, quality)
QualityScaledAAStringSet(x, quality)
x
is an
QualityScaledXStringSet object): length(x)
:
The number of sequences in x
.
width(x)
:
A vector of non-negative integers containing the number
of letters for each element in x
.
nchar(x)
:
The same as width(x)
.
names(x)
:
NULL
or a character vector of the same length as x
containing
a short user-provided description or comment for each element in x
.
quality(x)
:
The quality of the strings.
x
and values
are XStringSet objects,
and i
should be an index specifying the elements to extract. x[i]
:
Return a new QualityScaledXStringSet object made of the selected elements.
QualityScaledBStringSet
, QualityScaledDNAStringSet
,
QualityScaledRNAStringSet
and QualityScaledAAStringSet
functions are constructors that can be used to "naturally" turn
x
into an QualityScaledXStringSet object of the desired base type.
x1 <- DNAStringSet(c("TTGA", "CTCN"))
q1 <- PhredQuality(c("*+,-", "6789"))
qx1 <- QualityScaledDNAStringSet(x1, q1)
qx1
Run the code above in your browser using DataLab