seqinfo-methods: seqinfo() method for DNAStringSet objects

seqinfo-methodsR 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

getSeq, DNAStringSet-class,

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)


Bioconductor/Biostrings documentation built on April 23, 2024, 5:45 a.m.