Skip to content

Commit

Permalink
gt bioss notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Clémence Réda committed May 16, 2024
1 parent 869dce8 commit 68e93b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/NORDic/UTILS/STRING_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from io import StringIO
from copy import deepcopy
from subprocess import check_output as sbcheck_output
from subprocess import Popen
from subprocess import call as sbcall

string_api_url = lambda v : "https://version-"+"-".join(v.split("."))+".string-db.org/api"

Expand Down Expand Up @@ -321,8 +321,7 @@ def get_interactions_from_STRING(gene_list, taxon_id, min_score=0, app_name=None
if (not quiet):
print("<STRING> Retrieving the file from STRING", end="... ")
if (file_folder is not None and not os.path.exists(protein_action_fname)):
proc = Popen(("wget -qO- \""+STRING_url+"\" | gzip -d -c > "+protein_action_fname).split(" "))
proc.wait()
sbcall("wget -qO- \""+STRING_url+"\" | gzip -d -c > "+protein_action_fname, shell=True)
if (file_folder is not None):
if (not quiet):
print("Saved at %s" % protein_action_fname)
Expand Down

0 comments on commit 68e93b6

Please sign in to comment.