seqinfo-methods | R Documentation |
seqinfo
methods for extracting the
sequence information stored in a DNAStringSet
object.
## S4 method for signature 'DNAStringSet'
seqinfo(x)
x |
A DNAStringSet object. |
A Seqinfo object for the 'seqinfo' getter.
A DNAStringSet object containing sequence information for the 'seqinfo' setter.
getSeq
,
DNAStringSet-class,
## ---------------------------------------------------------------------
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.