An example ENSEMBL gene ID identifier list:
ENSG00000227232 ENSG00000223972 ENSG00000239945 ENSG00000238009 ENSG00000186092
Will output:
ENSG00000227232 WASH7P ENSG00000223972 DDX11L1 ENSG00000239945 AL627309.3 ENSG00000238009 AL627309.1 ENSG00000186092 OR4F5
GET request for a single ID:
https://biotools.fr/human/ensembl_symbol_converter/?api=1&id=ENSG00000227232will output:
{"ENSMUSG00000082108":"Gm13777"}
POST request with ids submitted as a JSON array:
endpoint: https://biotools.fr/human/ensembl_symbol_converter/
POST variables:
api = 1
ids = ["ENSG00000227232","ENSG00000223972","ENSG00000239945"
"]
endpoint: https://biotools.fr/human/ensembl_symbol_converter/ POST variables: api = 1 ids = ["ENSG00000227232","ENSG00000223972","ENSG00000239945" "]
Will output:
{"ENSMUSG00000082108":"Gm13777","ENSMUSG00000022485":"Hoxc5","ENSMUSG00000050621":"Rps27rt"}
Example R code:
require(httr) require(jsonlite) ### # A single ID to convert - use a GET request ### url = "https://biotools.fr/human/ensembl_symbol_converter/?api=1&id=ENSG00000227232" r <- GET(url) output = fromJSON( content(r, "text"), flatten=TRUE) df <- as.data.frame(output) df ### # Multiple IDs to convert - use a POST request ### url = "https://biotools.fr/human/ensembl_symbol_converter/" ids = c("ENSG00000227232","ENSG00000223972","ENSG00000239945") ids_json <- toJSON(ids) body <- list(api=1, ids=ids_json) r <- POST(url, body = body) output = fromJSON( content(r, "text"), flatten=TRUE) df <- as.data.frame(output) df