seqinfo-methods {Biostrings} | R Documentation |
seqinfo method for DNAStringSet objects
Description
seqinfo
methods for extracting the
sequence information stored in a DNAStringSet
object.
Usage
## S4 method for signature 'DNAStringSet'
seqinfo(x)
Arguments
x |
A DNAStringSet object. |
Value
A Seqinfo object for the 'seqinfo' getter.
A DNAStringSet object containing sequence information for the 'seqinfo' setter.
See Also
Examples
## ---------------------------------------------------------------------
## A. SIMPLE EXAMPLE
## ---------------------------------------------------------------------
library(drosophila2probe)
probes <- DNAStringSet(drosophila2probe)
## Check metadata slot: empty
metadata(probes)
## Get generated seqinfo table
seqinfo(probes)
## Subsetting seqinfo table to 10 seqnames
probes10 <- probes[1:10]
seqinfo(probes10) <- seqinfo(probes)[as.character(1:10)]
## See result: 10 seqnames
seqinfo(probes10)
[Package Biostrings version 2.64.1 Index]