Description Usage Arguments Details Author(s) See Also Examples
Functions to connect to the database and manage the database connections.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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, ... )
|
name |
The name of the database to connect to, or the array to select. |
use.webservice |
If |
quiet.webservice |
If |
dsname |
The name of the datasource to add or modify. |
species |
The species of interest. |
version |
The version of the database to connect to. |
host |
The location of the MySQL installation. |
username |
The username to connect to MySQL. |
password |
The password required to connect to MySQL. |
port |
The port MySQL is running on. (Use NA for default) |
overwrite |
If another connection with this dsname already exists, should it be overwritten? |
testConnect |
If |
pick.default |
If |
silent |
If |
x |
A |
f |
A function to apply to each \'row\' of the |
filter |
Which \'columns\' of the |
coerce |
What is the type of each parameter in \'f\'? |
... |
additional parameters |
granges |
A GRanges object |
genes |
The genes you wish to load into a |
genome |
A valid Gviz genome, ie: |
coalesce.name |
If this is a character vector, all genes will be joined into a single track with this name. Otherwise each gene will have its own track. |
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.
Tim Yates Crispin J. Miller
annmapTo
annmapDetails
annmapAll
annmapRange
annmapFilters
1 2 3 4 5 6 7 8 9 10 11 | 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()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.