Description Usage Arguments Details Value Author(s) Examples
View source: R/example_objects.R
This function returns a simulated POST request, similar to those generated from user-input into the web interface.
1 2 3 | examplePost(cmap, inputType = "non-directional", species = "human",
array.platform = NULL, idType = "entrez", rows = 1000, add = 3,
seed = 123)
|
cmap |
NChannelSet object, e.g. generated by the exampleCMAP function |
inputType |
character, one of directional, non-directional, profile |
species |
character, should match a species supported by the loaded gCMAPWeb configuration file |
array.platform |
character, should match an array platform supported by the loaded gCMAPWeb configuration file |
idType |
character, one of entrez, symbol or probe |
rows |
integer, number of genes to include in a 'profile' query. |
add |
numeric, score shift for scores in the first sample column. Scores for genes 1-50 will be shifted up, those for genes 51-100 down. Only used to simulate 'profile' queries. |
seed |
numeric, seed for the random number generator. Default=123 |
This function is mainly intented for testing purposes.
list, containg the same elements as a gCMAPWeb POST request
Thomas Sandmann
1 2 3 4 5 6 7 8 | if( require( "org.Hs.eg.db", character.only=TRUE)){
## generate an example NChannelSet for human EntrezIds
e <- exampleCMAP( universe="org.Hs.eg", rows=1000, cols=10)
## generate a matching example Post, simulating a non-directional query
examplePost( cmap=e )
## or a directional query
examplePost( cmap=e, inputType="directional")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.