omicverse.datasets.download_data

omicverse.datasets.download_data(url, file_path=None, dir='./data')[source]

Download a dataset file to local storage.

Parameters:
  • 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.

Returns:

Absolute/relative local path of downloaded file.

Return type:

str