Description Usage Arguments Value Author(s) Examples
Create a features track
1 2 | as.track.feat(x, name, short.label = NULL, col = "black", is.gene = FALSE,
arrow.density = 10)
|
x |
An object of type |
name |
The name of the track (a character string) |
short.label |
An optional character string to be displayed in left hand margin of track |
col |
The color to use plotting this track (can be a single color or a color for each element) |
is.gene |
A logical value; if |
arrow.density |
(Only used if |
An object of type track
which can be plotted with plot.track
function
Melissa J. Hubisz
1 2 3 4 5 6 7 8 9 10 11 | exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
featFile <- "sol1.gp"
unzip(exampleArchive, featFile)
f <- read.feat(featFile)
featTrack <- as.track.feat(f, "basic feature track")
f <- add.introns.feat(f)
geneTrack <- as.track.feat(f, "gene track", is.gene=TRUE)
plot.track(list(featTrack, geneTrack))
plot.track(list(featTrack, geneTrack, geneTrack, geneTrack, geneTrack),
xlim=c(14800, 16000))
unlink(featFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.