예제 #1
0
        public string GetInfoFromQuickGO(string goTerm)
        {
            var url = "https://www.ebi.ac.uk/QuickGO/services/ontology/go/terms/" + goTerm;
            //Make the request
            var response = _adapter.GETHttpRequestJSON(url);

            //Return the response
            return(response);
        }
예제 #2
0
        public string GetJSONTomData(BraineacParams data)
        {
            string response = string.Empty;

            //Set the URL with parameters. This URL will allow us to establish a communication with
            _braineacURL = _braineacURL + "tomdata?module=" + data.ModuleColor + "&tissue=" + data.Network + "&top=" + data.Top;
            //Make the request
            response = _adapter.GETHttpRequestJSON(_braineacURL);

            //Return the response
            return(response);
        }
예제 #3
0
        /// <summary>
        /// Method to obtain data from 'getNetworkCategories' API method. This method makes a GET request.
        /// </summary>
        /// <param name="coexpdata">Data to be sent to 'getNetworkCategories' CoExp API method</param>
        /// <returns>Response received from 'getNetworkCategories' CoExp API method</returns>
        public string GetNetworkCategories()
        {
            string response;

            //Set the URL with parameters. This URL will allow us to establish a communication with
            //CoExp R application API (published using Plumber R package)
            if (coexpURL == ProductionEnv)
            {
                coexpURL += "GetNetworkCategories";
            }
            else
            {
                coexpURL += "getNetworkCategories";
            }
            //Make the request
            response = _adapter.GETHttpRequestJSON(coexpURL);

            //Return the response
            return(response);
        }