Bioc2026 Registration Open!

BiocNeighbors

Nearest Neighbor Detection for Bioconductor Packages

Bioconductor version: 3.24 · Package version: 2.7.3

Implements exact and approximate methods for nearest neighbor detection, in a framework that allows them to be easily switched within Bioconductor packages or workflows. Exact searches can be performed using the k-means for k-nearest neighbors algorithm, vantage point trees, or an exhaustive search. Approximate searches can be performed using the Annoy or HNSW libraries. Each search can be performed with a variety of different distance metrics, parallelization, and variable numbers of neighbors. Range-based searches (to find all neighbors within a certain distance) are also supported.

Installation

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("BiocNeighbors")

Details

MaintainerAaron Lun <infinite.monkeys.with.keyboards@gmail.com>
AuthorAaron Lun [aut, cre, cph]
LicenseGPL-3
URLhttps://github.com/knncolle/BiocNeighbors
Bug Reportshttps://github.com/knncolle/BiocNeighbors/issues
System RequirementsC++17
Downloads rank15128
Source branchdevel
biocViewsClassification, Clustering, Software

Documentation

Download

Follow the installation instructions to use this package in your R session.

Source packageBiocNeighbors_2.7.3.tar.gz
Windows binary (x86_64)BiocNeighbors_2.7.3.zip
macOS binary (arm64)BiocNeighbors_2.7.3.tgz
macOS binary (x86_64)BiocNeighbors_2.7.3.tgz
Dependencies

Imports: Rcpp, methods

LinkingTo: Rcpp, assorthead, beachmat

Suggests: Matrix, DelayedArray, beachmat, BiocParallel, testthat, BiocStyle, S4Vectors, knitr, rmarkdown

Reverse dependencies

Imports Me (25): batchelor, betterChromVAR, bluster, CellMixS, clustSIGNAL, concordexR, cydar, GeDi, imcRtools, jvecfor, lemur, miloR, mumosa, poem, scater, scDblFinder, scider, scMerge, scrapper, smoothclust, SpatialFeatureExperiment, SpotSweeper, StabMap, SVP, UCell

Suggests Me (5): ClassifyR, scLANE, thisutils, TrajectoryUtils, TSCAN

Links To Me (1): scrapper