getmask: getmask

View source: R/getmask.R

getmaskR Documentation

getmask

Description

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

Usage

getmask(seq)

Arguments

seq

DNAStringSet or AAStringSet [mandatory]

Value

IRanges information 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 mask
mask1 <- IRanges::IRanges(start=c(1,41), end=c(20,50))
## add mask
iupac.aa <- iupac.aa |> addmask2string(mask=mask1)
#(iupac.aa |> slot("metadata"))$mask
iupac.aa |> getmask()

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