
Changelog
bixverse.gpu 0.8.0
Features
-
params_umap_gpu(optimiser = "adam_v06_gpu")(GPU) and"adam_v06"(CPU): the Adam of umap-learn 0.6, plusinit = "recursive"to pair with it. No MLX version; underbackend = "mlx"it runs on WGPU. -
params_kmeans_gpu(),params_sc_harmony_v2_gpu()andparams_sc_fast_cluster_gpu()takek_means_algorithm("emeans"or"lloyd") ande_means_epochs. -
leiden_clustering_gpu()andparams_sc_fast_cluster_gpu()takenode_order("bfs"or"shuffle"). - kNN, neighbours, clustering, UMAP, tSNE, PHATE and Harmony take
modality = "atac". -
harmony_gpu_sc()takesembd_to_useto correct any cached embedding. -
params_phate_gpu()takeslandmark_k_means("emeans"or"lloyd"). -
find_clusters_gpu_sc()takes.verbose;name = NULLnames the column after the algorithm.
Breaking changes
- e-means is the default k-means of GPU k-means, Harmony v2 and fast clustering. Results differ at the same seed;
k_means_algorithm = "lloyd"gives Lloyd’s back. -
local_movinginleiden_clustering_gpu()andparams_sc_fast_cluster_gpu()defaults toNULL:"queue"for Leiden,"coloured"for Louvain. Louvain results differ at the same seed. - GPU Harmony v2 estimates lambda per cluster and runs a fixed iteration count under Lloyd’s, following bixverse-r 0.11.0. Results differ at the same seed.
-
params_sc_harmony_v2_gpu()defaults tofixed = TRUEand losescsr_cube_count, which did nothing. - MLX fast clustering honours
k_means_algorithm; it ran Lloyd’s before. Results differ at the same seed. - Harmony, BBKNN and fastMNN code batches as bixverse does and error on NA labels. Results can differ at the same seed when the old order was locale dependent.
-
harmony_gpu_sc()gainsembd_to_usebeforemodality, so a positionalmodalitybreaks. A single batch warns and returns the object. - UMAP, tSNE and PHATE on
SingleCellserror on a missing embedding instead of warning. With a cached kNN, UMAP takes itskfrom the graph. - PCA, Scrublet, SCENIC, NMF and Bonsai refuse peak, tile and protein stores, as in bixverse; SCENIC and NMF warn on gene activity.
Fixes
- SEACells keeps
cells_to_keepon the returnedMetaCells. Same results. - SCENIC drops unknown
genes_to_takeinstead of mislabelling the rows. - PCA loadings carry gene names.
- Scrublet on a subset of cells loads those cells from the cell-based (CSR) store and builds the gene view from them, instead of loading the full genes from the gene-based (CSC) store and subsetting to the cells. Same results.
bixverse.gpu 0.7.0
Features
- GPU PHATE:
phate_gpu()on plain matrices,phate_gpu_sc()onSingleCells,params_phate_gpu()andrs_phate_gpu()/rs_phate_from_knn_gpu(). The kNN search and the randomised SVD and k-means of the default spectral landmark selection run on the GPU; diffusion time, MDS and the landmark interpolation stay on the CPU.backend = "mlx"moves the kNN and the spectral landmarks to MLX. Defaults follow manifolds-rs:k = 5L, a6 * k + 5wide search onknn_method = "ivf", 2048 spectral landmarks.phate_gpu_sc()builds a fresh kNN by default, since the cached one is usually far narrower than PHATE wants. New vignette: GPU-accelerated PHATE. -
params_umap_gpu(optimiser = "sgd_parallel"): lock-free (Hogwild!) SGD on the CPU forumap_gpu()andumap_gpu_sc(). Not reproducible run to run with more than one thread.
Breaking changes
-
umap_gpu()andumap_gpu_sc()cut a precomputed kNN wider thankdown to its nearestkneighbours, with a warning on stderr. They used every neighbour given. Different embeddings whenever the cached graph was wider thank. -
umap_gpu()andumap_gpu_sc()withn_epochs = NULL: only the SGD optimisers drop to 200 epochs above 10k samples, as in manifoldsR 0.6.0."adam"now always gets 500 (was 200 above 10k). -
"sgd"applies an edge’s negative samples as one step (manifolds-rs), so different embeddings at the same seed. -
parametric_umap()defaults tomin_dist = 0.5(was0.1), matching the single default curve manifolds-rs now fits. Different embeddings with the defaults. - The neighbour graph is a
SingleCellConnectivitynow, following bixverse 0.9.0, which moved it out of igraph and into Rust.find_neighbours_gpu_sc()andbbknn_gpu_sc()store one, andfind_clusters_gpu_sc()clusters it.leiden_clustering_gpu()takes aSingleCellConnectivityor an undirected igraph; an igraph goes throughbixverse::as_sc_connectivity()first. -
knn_method = "nndescent"hands back the NN-descent kNN graph itself: no CAGRA index, no beam search. Rows the descent left short are topped up with an exact search of just those rows. The old behaviour isknn_method = "cagra", now accepted bygenerate_gpu_knn_sc(),find_neighbours_gpu_sc(),generate_knn_graph_gpu(),rs_gpu_knn()and the GPU kNN blocks of Scrublet, BBKNN and fastMNN. Different neighbours at the same seed wherever"nndescent"was in use, which includes the defaults ofgenerate_gpu_knn_sc(),find_neighbours_gpu_sc()andgenerate_knn_graph_gpu(). BBKNN and fastMNN query one set of cells against another, so"nndescent"there still builds and beam searches CAGRA. -
extract_knnis gone fromparams_nn_gpu()andparams_knn_gpu_defaults(). The deprecatedextract_knnarguments ofgenerate_knn_graph_gpu()and the old CAGRA entry points map to"nndescent"(TRUE) or"cagra"(FALSE). -
harmony_v2_gpu_sc()is nowharmony_gpu_sc(), following bixverse 0.9.0 whereharmony_sc()runs v2. No alias. The embedding is still"harmony_gpu". -
params_sc_harmony_v2_gpu()defaults touse_dynamic_lambda = TRUE, as on the CPU. Different embeddings with the defaults. -
bbknn_gpu_sc():trim = NULLnow means10 * neighbours_within_batch * n_batches(was10 * neighbours_within_batch) and the stored kNN is cut balanced per batch. Different graphs and kNN with the defaults. -
umap_gpu(),tsne_gpu(),umap_gpu_sc(),tsne_gpu_sc()and theirrs_*functions loseuse_high_precisionand the automatic switch to fp64 above 100k samples. They always run in fp32 now, with manifolds-rs doing the steps prone to catastrophic cancellation in fp64. Runs that used fp64 give different embeddings at the same seed.
Bug fixes
-
nebula_gpu_sc()restarts stage one when the subject overdispersion lands on a spurious bound (via bixverse-rs 0.10.3). Different fits for affected genes at the same seed.
Chores
-
ann-search-rs0.12.2,manifolds-rs0.9.1 andbixverse-rs0.10.3. UMAP and tSNE pick up the manifolds-rs changes:"nndescent"builds the kNN graph directly there too, spectral initialisation gives different coordinates at the same seed, PCA initialisation runs its centring and SVD in fp64, and.verbosefollows one grammar:1Lprints timed stages and epochs every 50,2Ladds parameters and the kNN internals. - Needs bixverse >= 0.9.0 and manifoldsR >= 0.6.0.
igraphandMatrixmoved from Imports to Suggests; only the tests use them.
bixverse.gpu 0.6.1
Chores
- Builds without
faer’snpyfeature, throughann-search-rs0.11.2,manifolds-rs0.7.3 andbixverse-rs0.9.0. This dropsnpyz,pestandstackerfrom the build tree. Thestackerbuild script failed to findwindows.hon the r-universe Windows ARM64 build, where the host is MSVC and the target isaarch64-pc-windows-gnullvm. No API change.
bixverse.gpu 0.6.0
Features
- Exact sparse PCA on the GPU.
calculate_pca_gpu_sc()runs a block Lanczos on the device (WGPU and MLX) for everysvd_solverexcept"randomised", which keeps the randomised SVD. It matches the CPU Lanczos to f32 precision. - Fast clustering (
fast_cluster_gpu_sc()) can build the centroid graph from the cells instead of a kNN search over the centroids:params_sc_fast_cluster_gpu(cell_mediated = TRUE, n_anchors = 5L). Every cell links itsn_anchorsnearest centroids.
Breaking changes
-
calculate_pca_gpu_sc()no longer ignoressvd_solver. The default ("auto") is exact and slower than the randomised SVD it used to run. Passpca_params = params_sc_pca(svd_solver = "randomised")for the old behaviour.
bixverse.gpu 0.5.0
Features
- Experimental MLX backend for Apple Silicon via mlx-c. Opt in at install time:
brew install mlx-c(or pointMLX_C_PREFIXat an install prefix), then install withBIXVERSE_GPU_MLX=true. Check withmlx_available(). Functions with an MLX path takebackend = c("wgpu", "mlx"): PCA, kNN graphs, Harmony v2, SEACells, NMF (single, stabilised, consensus, k sweep), UMAP, tSNE and thers_cor_gpu()/rs_cov_gpu()correlations. For UMAP and tSNE,"mlx"moves the kNN search and the device optimiser ("adam_gpu","fft_3k_gpu"); CPU optimisers stay on the CPU. MLX is fp32 only. WGPU stays the default and the only portable backend. - FFT-accelerated tSNE (
approx_type = "fft"and"fft_3k") now works on Windows too: FFTW was replaced by the pure-Rust rustfft. - On macOS the CPU GEMMs in the Rust backends go through Apple Accelerate.
bixverse.gpu 0.4.1
Features
- Wired in the faster NEBULA via
edge-rs. This affects also the GPU path because parts of it run on CPU. To get exactly the same results, make sure you are onbixverseversion “≥0.6.2”.
bixverse.gpu 0.4.0
Features
- Improved speed across various methods:
- GPU-accelerated kNN searches
- Harmony (version 2) accelerated on the GPU
- Randomised SVD
- GPU-accelerated fastMNN wired in via
fast_mnn_gpu_sc(). Only the neighbour searches run on the device. Unlikebixverse::fast_mnn_sc(), it does not regenerate the PCA on batch-aware HVGs: it corrects the PCA already in the object. For the batch-aware flavour runfind_hvg_batch_aware_sc()andcalculate_pca_gpu_sc()first. See the single cell vignette. - The GPU-accelerated randomised SVD for single cell are is now using N_OVERSAMPLING 20 (instead of 100) and increased iterations from 2 to 4. Across various benchmarks and synthetic data sets, the quality of the trailing PCs has improved with the new thresholds while being faster.
- The GPU-accelerated NEBULA has now a parameter that enables that a minimum of samples similar to the CPU-based version.
bixverse.gpu 0.3.6
Features
- Quick-and-dirty Barnes-Hut tSNE optimiser from qdtsne wired into
tsne_gpu()andtsne_gpu_sc()viaapprox_type = "bh_qd". Tree depth is set withmax_depthinparams_tsne_gpu(). Runs on the CPU, like"bh".
bixverse.gpu 0.3.5
Features
- GPU-accelerated Sanity wired in via sanity-sc-rs. This gives you the GPU-accelerated equivalent of
bonsai_sc():bonsai_gpu_sc().
bixverse.gpu 0.3.1
Features
- Agent skill for using bixverse.gpu, shipped under
inst/skills/and installed withinstall_agent_skill_gpu(). Covers which GPU function replaces which bixverse step, what has no GPU path, and the traps. Same layout asbixverse::install_agent_skill(), with the API index generated bydata-raw/generate_api_index.R. - GPU-accelerated BBKNN.
- A GPU-accelerated implementation of NEBULA for lots and lots of cells.
bixverse.gpu 0.3.0
Features
- Take in substantial improvements on the Rust back-ends. The kNN searches now return Euclidean distances instead of squared Euclidean distances.
Deprecated
- The previous interface of
generate_cagra_knn_sc(),find_neighbours_cagra_sc(),params_sc_cagra(),rs_cagra_gpu_knn(),rs_exhaustive_gpu_knn(),params_sc_ivf()has been deprecated. These are now all wired intogenerate_gpu_knn_sc().
bixverse.gpu 0.2.8
Features
- GPU-accelerated NMF for single cells and meta cells:
nmf_gpu_sc(),stabilised_nmf_gpu_sc(),consensus_nmf_gpu_sc()andnmf_k_sweep_gpu_sc(), each dispatching onSingleCellsandMetaCells.
bixverse.gpu 0.2.7
Features
- GPU-accelerated Scrublet via
scrublet_gpu_sc(). The randomised sparse SVD, the projection of the simulated doublets and the kNN over the combined embedding run on GPU. Full parity withbixverse::scrublet_sc(),group_byincluded, and the sameScrubletResobject comes back. -
params_scrublet_gpu()picks between the GPU and the CPU nearest neighbour indices throughknn_backend, with theknnblock validated against whichever one was asked for.params_knn_gpu_defaults()holds the GPU-side defaults. - Improvements in terms of kernels taken from
ann-search-rs.
bixverse.gpu 0.2.1
Features
- GPU-accelerated UMAP optimisation exposed.
- GPU-accelerated kNN generation for both tSNE and UMAP (longer term also a GPU-accelerated tSNE optimiser planned). Additionally, the kNN graphs can be used more broadly.
-
umap_gpu_sc()andtsne_gpu_sc()wire the GPU UMAP and t-SNE paths directly into theSingleCellsworkflow, mirroringbixverse::umap_sc()andbixverse::tsne_sc().
bixverse.gpu 0.2.0
Major release.
Features
- CPU-backend of parametric UMAP changed to
flexfrom burn for better speed. Reduces also dependencies and packages and easier installation on Linux. - GPU-accelerated methods for single cell:
- kNN graphs are now multi-modal (see bixverse version
"0.4.0") - sparse, randomised SVD on GPU available
- GPU-accelerated Harmony (version 2).
- kNN graphs are now multi-modal (see bixverse version
- New GPU-accelerated methods:
- k-means clustering
- Correlations and co-variances supported on GPU.
- Option addded to save parametric UMAP models