Skip to content

Commit

Permalink
Inputs Baccin2019 new DL
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 19, 2024
1 parent 5e555ad commit 99ff1f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pypath/inputs/baccin2019.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import collections
import itertools

import pypath.share.curl as curl
import download_manager as dm

import pypath.resources.urls as urls
import pypath.utils.mapping as mapping
import pypath.utils.orthology as orthology_mod
Expand Down Expand Up @@ -117,8 +118,11 @@ def get_partners(components, sources, references):
}

url = urls.urls['baccin2019']['url']
c = curl.Curl(url, silent = False, large = True)
data = inputs_common.read_xls(c.fileobj.name, sheet = 'SuppTable3')

dmanager = dm.DownloadManager(pkg='pypath')
*_, path = dmanager._download(url)

data = inputs_common.read_xls(path, sheet = 'SuppTable3')

result = []

Expand Down

0 comments on commit 99ff1f4

Please sign in to comment.