Disease and Gene Annotations

Our system provides a web service to search disease-gene mapping between Disease Ontology and Gene.

You have two ways to search the mapping. Retrieve Gene information from disease or Retrieve disease information from Gene info, by setting parameter "searchType".

We give an example client in Java. You can use other programming language as well.

import java.io.IOException;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.params.HttpMethodParams;

public class MappingSearchClient {
	private static final String SEARCH_SERVICE_URL = "http://hdoa.nubic.northwestern.edu/batchservice.php";

	public static void main(String[] args) {
		try {
			HttpClient client = new HttpClient();
                        // Set this string for your application
			client.getParams().setParameter(HttpMethodParams.USER_AGENT, "DOAF Client Example");
			PostMethod method = new PostMethod(SEARCH_SERVICE_URL);
			// Configure the form parameters
			// searchType defines the method to search. 
			// "d2g" searches Gene information from disease 
			// and "g2d" searches disease information from Gene.
			// searchWord defines the key word to search.
			method.setParameter("searchType", "d2g");
			method.setParameter("searchWord", "primary breast cancer");
			int statusCode = client.executeMethod(method);
			if (statusCode != -1){
				try {
					String contents = method.getResponseBodyAsString();
				} catch (Exception e) {
		} catch (HttpException e) {
			// TODO Auto-generated catch block
		} catch (IOException e) {
			// TODO Auto-generated catch block