omicverse.datasets.download_data_requests

omicverse.datasets.download_data_requests#

omicverse.datasets.download_data_requests(url, file_path=None, dir='./data')[源代码]#

Download data with custom headers to reduce HTTP 403 failures.

参数:
  • url (str) – Source URL of the dataset file.

  • file_path (Optional[str]) – Target filename. If None, the basename of url is used.

  • dir (str) – Output directory where file is stored.

返回:

Local path to downloaded (or cached) file.

返回类型:

str