source: orange-bioinformatics/server_update/updateOMIM.py @ 1794:3a530b619d7f

Revision 1794:3a530b619d7f, 796 bytes checked in by Flashpoint <vid.flashpoint@…>, 11 months ago (diff)

Added Cytobands genesets and modified obiOMIM.py. Both need some extra work.

Line 
1##!interval=7
2##!contact=ales.erjavec@fri.uni-lj.si
3
4
5from common import *
6from Orange.bio import obiOMIM
7
8import os, sys
9
10path = os.path.join(environ.buffer_dir, "tmp_OMIM")
11
12try:
13    os.mkdir(path)
14except OSError:
15    pass
16filename = os.path.join(path, "morbidmap")
17obiOMIM.OMIM.download_from_NCBI(filename)
18
19sf_server.upload("OMIM", "morbidmap", filename, title="Online Mendelian Inheritance in Man (OMIM)",
20                   tags=["genes", "diseases", "human", "OMIM" "#version:%i" % obiOMIM.OMIM.VERSION])
21sf_server.unprotect("OMIM", "morbidmap")
22
23
24"""
25Orange server upload for OMIM morbidmap gene sets
26"""
27from Orange.bio.obiGeneSets import omimGeneSets, register
28
29omim_sets_split = omimGeneSets().split_by_hierarchy()
30for omim_sets in omim_sets_split:
31    register(omim_sets, sf_server)
32
Note: See TracBrowser for help on using the repository browser.