DownloadableAnnDataset¶
-
class
scvi.dataset.
DownloadableAnnDataset
(filename='anndataset', save_path='data/', url=None, delayed_populating=False, batch_label='batch_indices', ctype_label='cell_types', class_label='labels', use_raw=False, cell_measurements_col_mappings=None)[source]¶ Bases:
scvi.dataset.dataset.DownloadableDataset
Forms a
DownloadableDataset
from a .h5ad file using theanndata
package.- Parameters
save_path (
str
str
) – Location to use when saving/loading the data.url (
str
,None
Optional
[str
]) – URL pointing to the data which will be downloaded if it’s not already insave_path
.delayed_populating (
bool
bool
) – Switch for delayed populating mechanism.ctype_label (
str
str
) – AnnData obs column name for cell_typesuse_raw (
bool
bool
) – if True, copies data from .raw attribute of AnnData
Examples
>>> # Loading a local dataset >>> dataset = DownloadableAnnDataset("TM_droplet_mat.h5ad", save_path = 'data/')
Methods Summary
populate
()Populates a
DonwloadableDataset
object’s data attributes.Methods Documentation