View source: R/addpos2string.R
addpos2string | R Documentation |
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.
addpos2string(seq, chrom = NULL, start = NULL, end = NULL)
seq |
|
chrom |
chromosome name [mandatory] |
start |
start position [mandatory] |
end |
end position [mandatory] |
An object of class DNAStringSet
or AAStringSet
Kristian K Ullrich
addmask2string
,
addregion2string
,
addpop2string
## load example sequence data
data(iupac, package="MSA2dist")
## add position
iupac <- iupac |> addpos2string(chrom="chr1", start=1, end=1000)
#(iupac |> slot("metadata"))$GRanges
iupac |> getpos()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.