insert_gems

besca.tl.sig.insert_gems(BASE_URL, genesets, params, headers=['setName', 'desc', 'genes'])[source]

Insert genesets into the local gems server url_host will depend on GeMs deployement. Could be stored in crendential files. :param BASE_URL: an string ‘http://’ + hostname + ‘:’ + localport :type BASE_URL: class:str :param genesets: a list of dict; each dict is a signature; key values should mapp the headers :type genesets: list :param params: The command-line arguments for GMTx file upload (see below) based on GeMs structure :type params: list of strings. :param headers: each element is a key of the GEMs setup in place. Minimal requirement for a geneset would be

setName, desc and genes (minimal GMT)

Returns:

results – call results 200 indicates a good request

Return type:

int