Skip to content

Commit

Permalink
Replaced download in inputs.acsn.acsn_interactions_sif
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 19, 2024
1 parent e03c5db commit f09fba2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pypath/inputs/acsn.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,16 @@ def acsn_interactions_sif():
'_epsilon_': 'E'
}
regreek = re.compile(r'\b(' + '|'.join(greek.keys()) + r')\b')
result = []
url = urls.urls['acsn']['sif']
c = curl.Curl(url, silent = False)
data = c.result

dmanager = dm.DownloadManager(pkg = 'pypath')

_, item, *_ = dmanager._download(url)

data = item.open(large=True)
data = [
x.split('\t')
for x in data.replace('\r', '').replace('*', '').strip().split('\n')
x.replace('*', '').strip().split('\t')
for x in data.result
]

for l in data:
Expand Down

0 comments on commit f09fba2

Please sign in to comment.