Skip to content

BiocNeighbors

Bioc current

Nearest Neighbor Detection for Bioconductor Packages

v2.6.0 · software · GPL-3

Release Lineage

Entered 3.8 · Oct 31, 2018

Current · Requires R 4.6

1.0 In 16 of 49 releases 3.23

Description

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.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

87 22 exported

Complexity

1.6 avg / 6 max

Call network

87 nodes / 45 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

5,820

Files

78

Compiled share

20.5%

Has compiled src

Yes

Language breakdown

R 1,696 (29.1%)C/C++/src 1,191 (20.5%)Tests 1,244 (21.4%)Docs 1,410 (24.2%)Vignettes 279 (4.8%)

API

Exported functions

31

Internal functions

20

Recent export changes

v3.9+27 AnnoyIndex_search_mult, AnnoyParam_search_mult, HnswIndex +24 more  −3 KmknnIndex_clustered_data, KmknnIndex_clustered_order, buildNNIndex
v3.8+23 AnnoyIndex, AnnoyIndex_path, AnnoyParam +20 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.73

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

1

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

16

First release

2018-10-30

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

100%

Dep drift

7

LOC over versions

v3.8: 4,731 LOCv3.9: 8,803 LOCv3.10: 9,380 LOCv3.11: 10,770 LOCv3.12: 10,769 LOCv3.13: 13,014 LOCv3.14: 13,014 LOCv3.15: 13,014 LOCv3.16: 14,924 LOCv3.17: 14,926 LOCv3.18: 14,934 LOCv3.19: 14,934 LOCv3.20: 4,773 LOCv3.21: 4,720 LOCv3.22: 4,709 LOCv3.23: 5,820 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

Documentation
READMEYes · 49 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
94%
References docs
10%

Topics

Depended on by (35)

CRAN (1)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("BiocNeighbors")
Lun, A. (2026). BiocNeighbors: Nearest Neighbor Detection for Bioconductor Packages (Version 2.6.0) [Computer software]. https://bioconductor.org/packages/BiocNeighbors

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for BiocNeighbors version 2.6.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy