-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
50 lines (40 loc) · 1.08 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 Saez Lab
#
# OmniPath2 analysis and figures suite
#
# Authors:
#
# Nicolàs Palacio-Escat
# nicolas.palacio@bioquant.uni-heidelberg.de
#
# Dénes Türei
# turei.denes@gmail.com
#
#
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# Website: http://omnipathdb.org/
#
import importlib as imp
import omnipath2.main
from omnipath2 import settings
from pypath.resources import data_formats
from pypath.resources import network as netres
from pypath.core import annot
def kegg_off():
settings.setup(tf_target_pickle = 'tftarget_paper.pickle')
settings.setup(omnipath_pickle = 'omnipath_paper.pickle')
settings.setup(annotations_pickle = 'annotations_paper.pickle')
del data_formats.pathway_noref['kegg']
del data_formats.transcription_onebyone['kegg']
del data_formats.transcription['kegg']
annot.protein_sources_default.discard('KEGG')
imp.reload(netres)
kegg_off()
workflow = omnipath2.main.Main()
workflow.main()