enrichmurl.py 490 Bytes
Newer Older
fsoubes's avatar
fsoubes committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import sys
import os.path


'''
Author: Franck Soubès
For a listing genes, display a web page with the enrichment of theses genes. It is possible in the web page to select the right organism.
'''

def enrichmentdav(outputlist):
    
    url = "'http://david.abcc.ncifcrf.gov/api.jsp?type=OFFICIAL_GENE_SYMBOL&ids="
    for gene in outputlist:
        url += gene + ","
    url += "&tool=summary&annot=GOTERM_BP_ALL,GOTERM_CC_ALL,GOTERM_MF_ALL,'"
    #webbrowser.open(url)
    return(url)