Installation¶
scDEF is available through PyPI and requires Python 3.10 or 3.11:
GPU support¶
scDEF runs on JAX, and is much faster on a GPU
than on a CPU. Installing scdef pulls in a CPU build of JAX, which is enough to
get started but will be the bottleneck on anything beyond a small data set.
To use a GPU, install the JAX build matching your CUDA version after installing scDEF, so it replaces the CPU build:
Check which backend you ended up with:
See the JAX installation guide
for other accelerators and CUDA versions. scDEF pins jax>=0.4.31,<0.7, so pick a
build in that range.
Graph rendering¶
Plotting the factor hierarchy with scdef.pl.make_graph
needs the Graphviz system library, which is not a Python package and so is not
installed by pip:
Everything else in scDEF works without it.
Development install¶
To work on scDEF itself, clone the repository and install with Poetry, including the development and optional dependency groups: