Skip to content

Commit

Permalink
collectri: add sign decision and include as an edge attr
Browse files Browse the repository at this point in the history
  • Loading branch information
smuellerd committed May 23, 2023
1 parent 8d7102c commit f6415f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pypath/inputs/collectri.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def collectri_raw(
'tf_category',
'resources',
'pubmed',
'sign_decision',
'target_type',
),
)
Expand Down Expand Up @@ -149,6 +150,7 @@ def collectri_raw(
tf_category = l[3],
resources = l[4].replace('DoRothEA_A', 'DoRothEA-A'),
pubmed = l[5],
sign_decision = l[6],
target_type = 'mirna' if mmirna else 'protein',
)
)
Expand Down Expand Up @@ -183,6 +185,7 @@ def collectri_interactions(
'tf_category',
'resources',
'pubmed',
'sign_decision',
'target_type',
),
)
Expand Down
8 changes: 6 additions & 2 deletions pypath/resources/data_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2501,7 +2501,8 @@ def _pathwaycommons_single_resource(resource, transcription = False):
references = (5, ';'),
header = False,
extra_edge_attrs = {
'tf_category': 3
'tf_category': 3,
'sign_decision': 6
},
extra_node_attrs_a = {
'tf_category': 3
Expand Down Expand Up @@ -2807,7 +2808,10 @@ def _pathwaycommons_single_resource(resource, transcription = False):
resource = (4, ';'),
references = (5, ';'),
header = False,
extra_edge_attrs = {},
extra_edge_attrs = {
'tf_category': 3,
'sign_decision': 6
},
extra_node_attrs_a = {
'tf_category': 3
},
Expand Down

0 comments on commit f6415f7

Please sign in to comment.