addpos2string: addpos2string

Description Usage Arguments Value Author(s) See Also Examples

View source: R/addpos2string.R

Description

This function adds GenomicRanges information, CHROM, START and END to a DNAStringSet or an AAStringSet and puts them into the metadata information. This information can be used to find overlaps with a chromosome wide mask.

Usage

1

Arguments

seq

DNAStringSet or AAStringSet [mandatory]

chrom

chromosome name [mandatory]

start

start position [mandatory]

end

end position [mandatory]

Value

An object of class DNAStringSet or AAStringSet

Author(s)

Kristian K Ullrich

See Also

addmask2string, addregion2string, addpop2string

Examples

1
2
3
4
data(iupac, package="distSTRING")
## add position
iupac <- iupac |> addpos2string(chrom="chr1", start=1, end=1000)
iupac@metadata$GRanges

kullrich/distSTRING documentation built on Dec. 21, 2021, 8:42 a.m.