annmapConnect( name, use.webservice=FALSE, quiet.webservice=FALSE ) annmapDisconnect() annmapAddConnection( dsname, species, version, host='localhost', username=as.character( Sys.info()[ 'user' ] ), password='', port='', overwrite=FALSE, testConnect=TRUE ) arrayType( name=NULL, pick.default=FALSE, silent=FALSE ) annmapToggleCaching() annmapClearCache() annmapRangeApply( x, f, filter=c( chr="space", start="start", end="end", strand="strand" ), coerce=c( as.character, as.numeric, as.numeric, as.numeric ), ... ) strandAsInteger( granges ) geneToGeneRegionTrack( genes, genome, coalesce.name=NULL, ... )
TRUE
, we will use the annmap webservices rather than a local MySQL installation.FALSE
, there will be output as the webservice calls are processed. Set TRUE
to silence these. TRUE
, the connection will be attempted before adding it to the databases.txt file.TRUE
, arrayType
will choose the first available arraytype for this species. TRUE
, it will skip telling you which array you have selected. RangedData
objectRangedData
objectRangedData
object does the function need, and what parameters in the function do they map on to?. For example, by default, the field \'space\' gets mapped to the parameter \'chr\'.GeneRegionTrack
they must all be on the same chromosome. 'hg19'
. annmapConnect
is used to establish a connection to an
instance of the Annmap database, and annmapDisconnect
closes the connection. arrayType
is used to specify the array you wish to use for queries based on Affymetrix probesets.
Many of the functions in annmap
cache results locally. The
function annmapToggleCaching
turns this functionality on and
off, and annmapClearCache
can be used to clear the cache
(this is not normally something a user needs to do).
Note that details of how to set up the default databases, connection details, etc. Can be found in the package vignette.
The function strandAsInteger
takes a GRanges
object and returns an integer vector of strands in the
Ensembl style. "+" becomes 1, "-" becomes -1, and "*" becomes NA
.
The function geneToGeneRegionTrack
takes a list of genes (character vector, GRanges object, etc), and returns
a list of GeneRegionTracks which can be plotted in Gviz. There is an example in the cookbook.
annmapTo
annmapDetails
annmapAll
annmapRange
annmapFilters
if(interactive()) {
annmapConnect()
annmapToggleCaching()
annmapToggleCaching()
annmapRangeApply(symbolToGene("TP53",as.vector=FALSE),probeInRange)
#NOTE: since the next function empties out the local cache, don't
#run it unless you want to do this!
#annmapClearCache()
}
Run the code above in your browser using DataLab