comparison tools/myTools/bin/sfa/data/zanudo_2015a/__init__.py @ 1:7e5c71b2e71f draft default tip

Uploaded
author laurenmarazzi
date Wed, 22 Dec 2021 16:00:34 +0000
parents
children
comparison
equal deleted inserted replaced
0:f24d4892aaed 1:7e5c71b2e71f
1 # -*- coding: utf-8 -*-
2
3 """
4 [Reference]
5 Zañudo, J. G. T., & Albert, R.
6 Cell Fate Reprogramming by Control of Intracellular Network Dynamics.
7 PLoS Computational Biology, (2015) 11(4), e1004193.
8
9 """
10
11 import os
12
13 import pandas as pd
14
15 import sfa
16 import sfa.base
17
18
19 def create_data():
20 return ZanudoAData()
21
22
23 class ZanudoAData(sfa.base.Data):
24
25 def __init__(self):
26
27 self._abbr = "zanudo_2015a"
28 self._name = "Zañudo et al. PLoS Computational Biology, 11(4), e1004193"
29 inputs = {}
30
31 dpath = os.path.dirname(__file__)
32 fpath_network = os.path.join(dpath, 'network.sif')
33 A, n2i, dg = sfa.read_sif(fpath_network, as_nx=True)
34 self._A = A
35 self._n2i = n2i
36 self._i2n = {idx: name for name, idx in n2i.items()}
37 self._dg = dg
38 self._inputs = inputs
39
40 # The following members are not defined due to the lack of data.
41 self._df_conds = None
42 self._df_exp = None
43 self._df_ptb = None
44 self._has_link_perturb = False
45 self._names_ptb = None
46 self._iadj_to_idf = None
47 # end of def __init__
48 # end of def class
49