region: region

View source: R/region.R

regionR Documentation

region

Description

This function shows the region slot from a DNAStringSet or an AAStringSet metadata information.

Usage

region(seq)

Arguments

seq

DNAStringSet or AAStringSet [mandatory]

Value

region IRanges object from metadata

Author(s)

Kristian K Ullrich

See Also

addpop2string

Examples

## load example sequence data
data(iupac, package="MSA2dist")
iupac.aa <- iupac |> cds2aa(shorten = TRUE)
## create region
region1 <- IRanges::IRanges(start=c(1,41), end=c(20,50))
## add region
iupac.aa <- iupac.aa |> addregion2string(region=region1)
iupac.aa |> region()

kullrich/MSA2dist documentation built on Nov. 14, 2024, 5:39 p.m.