Setup¶
Tell kDomainBench where the method environments are. The kdomainbench command has its own
page, Command line.
set_env
¶
Point one method environment at an interpreter, for this Python session.
An environment variable (KDB_PY_PYTHON, KDB_SPATIALDE_PYTHON, KDB_RSCRIPT,
KDB_METRICS_RSCRIPT, KDB_R_LIB) still wins over this setting.
| PARAMETER | DESCRIPTION |
|---|---|
key
|
TYPE:
|
interpreter
|
The environment's
TYPE:
|
r_lib
|
An isolated R library for the R methods, whatever
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
Unknown key. |
Examples:
example_data
¶
Download the example file of the tutorials, DLPFC sample 151509.
A cloned repository already has the file in data/, and then nothing is downloaded. A
file that is there is checked too.
| PARAMETER | DESCRIPTION |
|---|---|
folder
|
Where the file goes. It is created when missing.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Path
|
|
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
The download, or the file already in |
Examples:
Environment variables¶
| Variable | Meaning | Default |
|---|---|---|
KDB_PY_PYTHON |
python of kdb_py |
the conda env kdb_py |
KDB_SPATIALDE_PYTHON |
python of kdb_spatialde |
the conda env kdb_spatialde |
KDB_ENVS_DIR |
folder with the two conda environments. kdomainbench install creates them there, and they are looked for there first |
conda's own folder |
KDB_RSCRIPT |
Rscript for the R methods |
Rscript on PATH |
KDB_R_LIB |
separate R library. The R methods see only it and base R | none |
KDB_METRICS_RSCRIPT |
Rscript for the metric code, when it is not the R of the methods. KDB_R_LIB is not applied to it |
the R of the methods |
OMP_NUM_THREADS |
threads of CellCharter, DeepST and SpaGCN | every core of the machine |
PRECAST_CORES |
worker processes of PRECAST | 4 |
SCMEB_PARALLEL |
TRUE = run SC.MEB with parallel workers |
FALSE |
SCMEB_CORES |
worker processes of SC.MEB when SCMEB_PARALLEL=TRUE |
3 |
Without the first three variables, the conda envs are looked for next to the environment
kdomainbench runs in, then under $CONDA_EXE, $MAMBA_EXE, $CONDA_PREFIX and
~/anaconda3, ~/miniconda3, ~/mambaforge, ~/miniforge3, ~/.conda. Environments created
together by envs/install_envs.sh are therefore found without any setting.