Download
download(census_version, dataset_id, base_dir)
Download cell type dataset from cellxgene census.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
census_version
|
str
|
Version of the cellxgene census to use |
required |
dataset_id
|
str
|
ID of the dataset to download |
required |
base_dir
|
Path
|
Base directory for data downloads |
required |
Source code in bionemo/geneformer/scripts/celltype_classification_bench/download.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
random_seed(seed)
Context manager to set the random seed for reproducibility.
Source code in bionemo/geneformer/scripts/celltype_classification_bench/download.py
27 28 29 30 31 32 33 34 35 | |