plotTracks
.clearSessionCache
is can be called to remove all cached items
from the session which are generated when connecting with the UCSC
data base.
UcscTrack(track, table=NULL, trackType=c("AnnotationTrack",
"GeneRegionTrack", "DataTrack", "GenomeAxisTrack"), genome, chromosome,
name=NULL, from, to, ...)clearSessionCache()
NULL
, in which case the default selection of tables is
used. To find out about available tables for a given track please
consult the online table browser at
c("AnnotationTrack",
"GeneRegionTrack", "DataTrack", "GenomeAxisTrack")
. The function
will try to coerce the downloaded data in an object of this
class. See below for details.trackType
argument. See Details section for more
information.trackType
.trackType
argument, and subsequently the function
passes all data on to the respective object constructor. All
additional named arguments are considered to be relevant for the
constructor of choice, and single character scalars are replaced by
the respective data columns in the dowloaded UCSC tables if
available. For instance, assuming the table for track 'foo' contains
the columns 'id', 'type', 'fromLoc' and 'toLoc', giving the featuer
identifier, type, start end end location. In order to create an
AnnotationTrack
object from that data, we have to
pass the additional named arguments id="id"
,
feature="type"
, start="fromLoc"
and code{end="toLoc"} to the
UcscTrack
function. The complete function call could look like
this: UcscTrack(track="foo", genome="mm9", chromosome=3,
from=1000, to=10000, trackType="AnnotationTrack", id="id",
feature="type", start="from", end="to")
To reduce the bandwidth, some caching of the UCSC connection takes
place. In order to remove these cached session items, call
clearSessionCache
.
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/"
.
AnnotationTrack