Skip to content

opticskxi

1.2.2

OPTICS K-Xi Density-Based Clustering

1packages depend
7.7Kdownloads / year
93.1%test coverage
11/13checks pass

Overview

About
Maintained by Thomas CharlonFirst published 2019-07-195 releasesCRAN page ↗GitLab ↗

Density-based clustering methods are well adapted to the clustering of high-dimensional data and enable the discovery of core groups of various shapes despite large amounts of noise. This package provides a novel density-based cluster extraction method, OPTICS k-Xi, and a framework to compare k-Xi models using distance-based metrics to investigate datasets with unknown number of clusters. The vignette first introduces density-based algorithms with simulated datasets, then presents and evaluates the k-Xi cluster extraction method. Finally, the models comparison framework is described and experimented on 2 genetic datasets to identify groups and their discriminating features. The k-Xi algorithm is a novel OPTICS cluster extraction method that specifies directly the number of clusters and does not require fine-tuning of the steepness parameter as the OPTICS Xi method. Combined with a framework that compares models with varying parameters, the OPTICS k-Xi method can identify groups in noisy datasets with unknown number of clusters. Results on summarized genetic data of 1,200 patients are in Charlon T. (2019) doi:10.13097/archive-ouverte/unige:161795. A short video tutorial can be found at https://www.youtube.com/watch?v=P2XAjqI5Lc4/.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 5.7 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.22
93.1%
Coverage · measured lines
88%
Documentation · exports
4
Dependencies · direct
Check history
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-15
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-10
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
95%
Return-value docs
95%
References docs
0%

Downloads

7.7K
CRAN downloads in the past year
Rank #7,186 · ~21/day · ~640/mo
Daily download trend is not available in this view yet.
23830 days
1.5K90 days
7.7K1 year
Compare downloads with other packages →
Also on133 r2u38 autocran

Repository

Repository practices

Upstream repositoryBeta

Repository gitlab.com/thomaschln/opticskxi is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Code Composition
R 1,374 (48%)Rd 816 (28%)Vignettes 601 (21%)Other 78 (3%)
Code characteristics
Cyclomatic complexity
2.0 median / 10 max
Test cases
13 / 0.22 per code line

Test coverage

Line coverage

93%

Expression

91.1%

Tests / Examples

93.1% / 73% ex

Functions

41 21 exported

Complexity

2.6 avg / 10 max

Call network

41 nodes / 28 edges

Loading call graph…

Lowest coverage

41 functions
FunctionCycloCoverage
norm_inprod exp10%
stddev_mean exp20%
inprod20%
dist_matrix exp275%
get_best_kxi exp475%
normalize exp480%

Datasets

Bundled datasets · 3
NameClassRows × ColsAlso ships in
crohndata.frame387 × 212in 3 packages
hladata.frame271 × 8in 2 packages
multishapesdata.frame1,100 × 3in 2 packages

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.2.2Latest
    2026-06-10 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.1
    2025-03-09 · diff ↗
  • 1.2.0
    2025-02-26 · diff ↗
  • 1.1.0
    2024-12-09 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1
    2019-07-19
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-07-19
Total releases
5 / 7 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
661 KB / 4 files
Download size
2.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →