Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vtoure committed Mar 11, 2020
1 parent 5969dcb commit 6b0ff9c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions pathway_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"stabilization" : "GO:0003674",
"sumoylation" : "GO:0061665",
"s-nitrosylation" : "GO:0035605", # peptidyl-cysteine S-nitrosylase activity
"transcriptional regulation" : "GO:0140110",
"transcriptional activation": "GO:0140110",
"transcriptional regulation": "GO:0140110",
"transcriptional repression": "GO:0140110",
"translation regulation": "GO:0045182",
"trimethylation" : "GO:0008276",
Expand Down Expand Up @@ -205,13 +205,11 @@ def __init__(self, filename=None):

# If up-regulates (including any variants of this), use RO:0002629 if DIRECT, and use RO:0002213 if not DIRECT or UNKNOWN
relation = None

if line["EFFECT"].startswith("up-regulates"):
if line["DIRECT"] == "YES":
relation = "RO:0002629"
elif line["DIRECT"] == "NO":
relation = "RO:0002213"

# If down-regulates (including any variants of this), use RO:0002630 if DIRECT, and use RO:0002212 if not DIRECT or UNKNOWN
elif line["EFFECT"].startswith("down-regulates"):
if line["DIRECT"] == "YES":
Expand All @@ -225,7 +223,6 @@ def __init__(self, filename=None):
elif line["EFFECT"] == "form complex":
continue


pc = PathwayConnection(
line["IDA"],
line["IDB"],
Expand Down
1 change: 0 additions & 1 deletion pathway_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from prefixcommons.curie_util import expand_uri
from pathway_connections import PathwayConnectionSet
import argparse
import os

ro = OboRO()
ENABLED_BY = URIRef(expand_uri(ro.enabled_by))
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ chardet==3.0.4
click==6.7
decorator==4.2.1
gocamgen==0.0.4

idna==2.6
isodate==0.6.0
isort==4.3.4
Expand Down

0 comments on commit 6b0ff9c

Please sign in to comment.