examplePost: Simulate POST request

Description Usage Arguments Details Value Author(s) Examples

View source: R/example_objects.R

Description

This function returns a simulated POST request, similar to those generated from user-input into the web interface.

Usage

1
2
3
examplePost(cmap, inputType = "non-directional", species = "human",
  array.platform = NULL, idType = "entrez", rows = 1000, add = 3,
  seed = 123)

Arguments

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

Details

This function is mainly intented for testing purposes.

Value

list, containg the same elements as a gCMAPWeb POST request

Author(s)

Thomas Sandmann

Examples

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")
}

gCMAPWeb documentation built on April 28, 2020, 8:23 p.m.