Skip to content

Canek

0.3.1Package record

Batch Correction of Single Cell Transcriptome Data

0packages depend
3.7Kdownloads / year
–test coverage
12/13flavors OK

Overview

About

Non-linear/linear hybrid method for batch-effect correction that uses Mutual Nearest Neighbors (MNNs) to identify similar cells between datasets. Reference: Loza M. et al. (NAR Genomics and Bioinformatics, 2020) doi:10.1093/nargab/lqac022.

Changes in 0.3.1

Changes

  • Sped up MNN pair finding: FindMnnPairs() scanned the full neighbor tables with which() for every cell and grew its result with repeated rbind() calls inside a loop, both of which scaled quadratically in cell count. Both are now near-linear, with no change in output (verified byte-identical against the previous implementation). Fuzzy() also no longer converts its correction matrix to a data.frame just to track a per-cell flag, which was much slower than tracking it as a plain vector. Together these give roughly a 2-4x speedup on real datasets, more on larger ones, since MNN search is repeated on every maxLoop pass.
  • Added an ncores parameter (CorrectBatches(), CorrectBatch(), GetMnnPairs(), and via ... on RunCanek()) to parallelize the two independent k-nearest-neighbor searches MNN pair finding requires. Defaults to 1 (fully sequential) — parallelism is opt-in only, since automatically detecting and using "available" cores could oversubscribe a shared cluster/HPC job's actual allocation. Uses parallel::mclapply(), so ncores > 1 requires Linux/macOS (errors on Windows, and if more cores are requested than parallel::detectCores() reports, rather than silently falling back or capping). See the new Speed up batch correction with parallel processing vignette.

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORpackage dependenciesr-oldrel-macos-arm64
Package required but not available: ‘bluster’

Packages suggested but not available for checking: 'batchelor', 'scran'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.

CRAN check page ↗

Slowest check: 6.9 min · r-oldrel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-07-18
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-10
  • ERROR12 OK, 1 ERROR2026-05-03
Show 2 earlier changesHide 2 earlier changes
  • OK12 OK2026-04-25
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 526 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3.1Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
11 (1 internal)includes a package overview page
Examples that run
0%2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
67%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.7K
CRAN downloads in the past year
Rank #7,503 · ~10/day · ~306/mo
Daily download trend is not available in this view yet.
47930 days
1.2K90 days
3.7K1 year
Compare downloads with other packages →
Also on179 r2u

Repository

7Stars
1Forks
1Open issues
0Open PRs
1Releases
523Commits
6Commit identities
rsingle-cell-rna-seqtranscriptomicsbatch-effectsbioinformatics
523 commits · Last activity 2026-07-17 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-04-16 · 42026-07-07 · 7
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/martinloza/canek on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-17 · The repository has a site deploy workflow

pkgdown site last built 2026-07-17

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-07-16
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing Canek adds 22 packages (13 with compiled code, 16 MB of source tarballs). Heaviest: igraph 4.8 MB, mclust 2.7 MB, robustbase 2.2 MB. 1 more not on CRAN is not measured.

Depends (1)
R >= 3.5.0
Imports (10)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.2.0 (2022)
Author
Releases (7)

Pick two releases to compare their code metrics.

  • 0.3.1Latest
    record
    2026-07-17 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.5
    record
    2023-12-08 · diff ↗
  • 0.2.4
    record
    2023-11-06 · diff ↗
  • 0.2.3
    record
    2023-10-18 · diff ↗
  • 0.2.2
    record
    2023-05-31 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2022-05-10
  • 0.2.1
    record
    2022-05-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • archivedRemoved from CRAN
    2022-04-15
    installation issues were not corrected in time
  • 0.2.0
    record
    2022-03-23
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-03-23
Total releases
7 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
2.3 MB / 1 file
Download size
2.7 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("Canek")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1093/nargab/lqac022.

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 Canek version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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