Icon

GET Request

GET Request Example (Life Sciences)

In this workflow snippet, we will use the REST service provided by MyGene.info [1,2] (https://mygene.info/) to obtain a list of human genes related to specific hormones. Then, we parse the JSON response into a table that is easy to read.

Sometimes, responses come in XML format. We have also included a way to parse XML responses by first converting the JSON response directly to XML.

1. Xin J, Mark A, Afrasiabi C, Tsueng G, Juchler M, Gopal N, Stupp GS, Putman TE, Ainscough BJ, Griffith OL, Torkamani A, Whetzel PL, Mungall CJ, Mooney SD, Su AI, Wu C (2016) High-performance web services for querying gene and variant annotation. Genome Biology
2. Wu C, MacLeod I, Su AI (2013) BioGPS and MyGene.info: organizing online, gene-centric information. Nucl. Acids Res. 41(D1): D561-D565.


In this workflow snippet, we will use the REST service provided by MyGene.info to obtain a list of human genes related tospecific hormones. Then, we parse the JSON response into a table that is easy to read. Sometimes, responses come in XML format. We have also included a way to parse XML responses by first convertingthe JSON response directly to XML. Option 1: Convert JSON to XML Option 2: Parse JSON and ungroup Table with a list of hormones parse: - _ids - _scores - entrezgenes - names - symbols - taxidsUngroup to getrow-wise recordsConvert JSON to XMLto simulate XML responseDirectly obtain row-wise recordsCreate a GET request URLper hormoneTable Creator GET Request JSON Path Ungroup JSON To XML XPath String Manipulation In this workflow snippet, we will use the REST service provided by MyGene.info to obtain a list of human genes related tospecific hormones. Then, we parse the JSON response into a table that is easy to read. Sometimes, responses come in XML format. We have also included a way to parse XML responses by first convertingthe JSON response directly to XML. Option 1: Convert JSON to XML Option 2: Parse JSON and ungroup Table with a list of hormones parse: - _ids - _scores - entrezgenes - names - symbols - taxidsUngroup to getrow-wise recordsConvert JSON to XMLto simulate XML responseDirectly obtain row-wise recordsCreate a GET request URLper hormoneTable Creator GET Request JSON Path Ungroup JSON To XML XPath String Manipulation

Nodes

Extensions

Links