DownloadableDataset

class scvi.dataset.DownloadableDataset(urls=None, filenames=None, save_path='data/', delayed_populating=False)[source]

Bases: scvi.dataset.dataset.GeneExpressionDataset, abc.ABC

Sub-class of GeneExpressionDataset which downloads its data to disk and then populates its attributes with it.

In particular, it has a delayed_populating parameter allowing for instantiation without populating the attributes.

Parameters
  • urls (str, Iterable[str], NoneUnion[str, Iterable[str], None]) – single or multiple url.s from which to download the data.

  • filenames (str, Iterable[str], NoneUnion[str, Iterable[str], None]) – filenames for the downloaded data.

  • save_path (strstr) – path to data storage.

  • delayed_populating (boolbool) – If False, populate object upon instantiation. Else, allow for a delayed manual call to populate method.

Methods Summary

download()

populate()

Populates a DonwloadableDataset object’s data attributes.

Methods Documentation

download()[source]
abstract populate()[source]

Populates a DonwloadableDataset object’s data attributes.

E.g by calling one of GeneExpressionDataset’s populate_from... methods.