optimizeStyle.Rd
Automatic optimize the stlye of trackViewer
optimizeStyle(trackList, viewerStyle = trackViewerStyle(), theme = NULL)
An object of trackList
An object of trackViewerStyle
A character string. Could be "bw", "col" or "safe".
a list of a trackList
and a trackViewerStyle
See Also as viewTracks
extdata <- system.file("extdata", package="trackViewer",
mustWork=TRUE)
files <- dir(extdata, ".wig")
tracks <- lapply(paste(extdata, files, sep="/"),
importScore, format="WIG")
re <- optimizeStyle(trackList(tracks))
trackList <- re$tracks
viewerStyle <- re$style