Description Usage Arguments Details Value Author(s) Examples
The function addPointsOfInterest
adds marker points to a Scale4C
object, which are subsequently used to mark points of interest in created plots.
1 | addPointsOfInterest(data, poi)
|
data |
Scale4C object the points are to be added to |
poi |
Points of interest data, in a GRanges object. Important: column names must be specified and include 'colour' and 'name' for each point of interest with appropriate values |
The function addPointsOfInterest
adds predefined points of interest to
a Scale4C
object. Each point of interest is defined by 'chr', 'start', 'end',
'colour', and 'name'. A bed file or text file can be used to store the
information, however, column names have to be added before import. Other
additional columns are ignored by the function. The function then converts the
information to a GRanges object.
A data frame that contains the data for all points of interest
Carolin Walter
1 2 3 4 5 6 7 | # import provided point of interest example, and check if import was
# successful
data(liverData)
poiFile <- system.file("extdata", "vp.txt", package="Scale4C")
pointsOfInterest(liverData) <- addPointsOfInterest(liverData,
read.csv(poiFile, sep = "\t", stringsAsFactor = FALSE))
head(pointsOfInterest(liverData))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.