_figshare
Low-level Figshare download helper. Caches files as .h5ad under
$SCDESIGNER_DATA (or ~/.scdesigner_data).
Datasets have been uploaded to this folder
https://figshare.com/authors/Kris_Sankaran/15347602
and were originally drawn from the links at supplementary table 2 from the scDesign3 paper.
ensure_data_home(data_home)
Return the cache directory, creating it if needed.
Resolution order: data_home arg, $SCDESIGNER_DATA, then
~/.scdesigner_data.
Source code in scdesigner/src/scdesigner/datasets/_figshare.py
18 19 20 21 22 23 24 25 26 27 28 | |
fetch_figshare_h5ad(*, figshare_file_id, cache_name, data_home=None, download_if_missing=True)
Return a cached AnnData, downloading from Figshare on a cache miss.
Returns None if uncached and download_if_missing is False.
Source code in scdesigner/src/scdesigner/datasets/_figshare.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |