Skip to content

Commit

Permalink
Inputs.biogps new DL
Browse files Browse the repository at this point in the history
  • Loading branch information
Balazs Bohar committed Nov 19, 2024
1 parent 99ff1f4 commit b475893
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pypath/inputs/biogps.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@

import pandas as pd

import download_manager as dm

import pypath.resources.urls as urls
import pypath.share.curl as curl
import pypath.share.common as common
import pypath.utils.taxonomy as taxonomy
import pypath.utils.mapping as mapping
Expand Down Expand Up @@ -83,7 +84,11 @@ def biogps_download(dataset):
biogps_urls = urls.urls['biogps']
label = dataset.label if hasattr(dataset, 'label') else dataset
url = biogps_urls['url'] % biogps_urls['datasets'][label]
c = curl.Curl(url, silent = False, large = True)

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

c = item.open(large = True)

the_file = (
common.first(c.result.values())
Expand Down

0 comments on commit b475893

Please sign in to comment.