Skip to content

Commit

Permalink
inputs.acsn: moved to new dl-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Nov 19, 2024
1 parent ab6abe7 commit e03c5db
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pypath/inputs/acsn.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import re
import collections

import download_manager as dm

import pypath.resources.urls as urls
import pypath.share.curl as curl

Expand All @@ -45,8 +47,13 @@ def acsn_interactions(keep_in_complex_interactions = True):

names_url = urls.urls['acsn']['names']
ppi_url = urls.urls['acsn']['ppi']
names_c = curl.Curl(names_url, silent = False, large = True)
ppi_c = curl.Curl(ppi_url, silent = False, large = True)

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

_, names_item, *_ = dmanager._download(names_url)
_, ppi_item, *_ = dmanager._download(ppi_url)
names_c = names_item.open(large = True)
ppi_c = ppi_item.open(large = True)

names = {}
interactions = []
Expand Down

0 comments on commit e03c5db

Please sign in to comment.