IdeogramTrack-class | R Documentation |
A class to represent the schematic display of a chromosome, also known as an ideogram. The respective information is typically directly fetched from UCSC.
chromosome |
The chromosome for which to create the ideogram. Has to be
a valid UCSC chromosome identifier of the form |
genome |
The genome on which to create the ideogram. This has to be a valid UCSC genome identifier if the ideogram data is to be fetched from the UCSC repository. |
name |
Character scalar of the track's name used in the title panel when plotting. Defaults to the selected chromosome. |
bands |
A |
... |
Additional items which will all be interpreted as further display parameters. |
Ideograms are schematic depictions of chromosomes, including chromosome band
information and centromere location. The relevant data for various species
is stored in the UCSC data base. The initializer method of the class will
automatically fetch the respective data for a given genome and chromosome
from UCSC and fill the appropriate object slots. When plotting
IdeogramTracks
, the current genomic location is indicated on the
chromosome by a colored box.
The Gviz.ucscUrl
option controls which URL is being used to connect
to UCSC. For instance, one could switch to the European UCSC mirror by
calling options(Gviz.ucscUrl="http://genome-euro.ucsc.edu/cgi-bin/"
.
The return value of the constructor function is a new object of class
IdeogramTrack
.
Objects can be created using the constructor function IdeogramTrack
.
When fetching ideogram data from UCSC the results are cached for faster
acces. See clearSessionCache
on details to delete these cached
items.
Florian Hahne
DisplayPars
GdObject
GRanges
HighlightTrack
ImageMap
IRanges
RangeTrack
DataTrack
collapsing
grouping
panel.grid
plotTracks
settings
## Construct the object
## Not run:
idTrack <- IdeogramTrack(chromosome = 7, genome = "mm9")
## End(Not run)
## Plotting
plotTracks(idTrack, from = 5000000, to = 9000000)
## Track names
names(idTrack)
names(idTrack) <- "foo"
plotTracks(idTrack, from = 5000000, to = 9000000)
## Accessors
chromosome(idTrack)
## Not run:
chromosome(idTrack) <- "chrX"
## End(Not run)
genome(idTrack)
## Not run:
genome(id) <- "hg19"
## End(Not run)
range(idTrack)
ranges(idTrack)
## Annotation
values(idTrack)
## coercion
as(idTrack, "data.frame")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.