CURL access sytax: | |||
[http GET] | |||
curl https://idmapping.uniprot.org/cgi-bin/idmapping_http_client -d "ids=ID1,ID2,...,IDn&from=IDTYPE[&to=IDTYPE][&taxid=TAXID]" -d "@/[path]/[filename]" | |||
[http POST] | |||
curl --request POST https://idmapping.uniprot.org/cgi-bin/idmapping_http_client --form "ids=ID1,ID2,...,IDn" --form "from=IDTYPE" [--form "to=IDTYPE"] [--form "taxid=TAXID"] | |||
[ids FILE] | |||
curl https://idmapping.uniprot.org/cgi-bin/idmapping_http_client -d "@/[path/]id_filename" -d "from=IDTYPE[&to=IDTYPE][&taxid=TAXID]" | |||
where 'n' can be any number, | |||
the file format of 'id_filename' is: ids=ID1,ID2,ID2,...,IDn, and | |||
spaces may also be used as delimiters for ids unless the ids are GeneNames. | |||
CURL examples: | |||
curl https://idmapping.uniprot.org/cgi-bin/idmapping_http_client -d "ids=Q65PH2,Q81VZ2,Q15796&from=ACC&to=P_REFSEQ_AC" | |||
curl --request POST https://idmapping.uniprot.org/cgi-bin/idmapping_http_client --form "ids=Q65PH2,Q81VZ2,Q15796" --form "from=ACC" --form "to=P_REFSEQ_AC" | |||
curl https://idmapping.uniprot.org/cgi-bin/idmapping_http_client -d "from=ACC&to=P_REFSEQ_AC" -d "@myIdFile" | |||
(In this case, 'myIdFile' contains: ids=Q65PH2,Q81VZ2,Q15796) |