harmony
Fast, Sensitive, and Accurate Integration of Single Cell Data
Description
Implementation of the Harmony algorithm for single cell integration, described in Patikas, Yao, et al. <doi:10.64898/2026.03.16.711825>. Package includes a standalone Harmony function and interfaces to external frameworks.
Downloads
21K
Last 30 days
816th
67.8K
Last 90 days
221.8K
Last year
Trend: -19.7% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (1 non-OK)
tests
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(harmony)
Loading required package: Rcpp
• This is Harmony2 version 2.0.5
• Read the guide: run vignette("quickstart", package="harmony")
• Get help: Visit the website at <https://korsunskylab.github.io/harmony2/> and
report issues on <https://github.com/immunogenomics/harmony/issues>
>
> test_check("harmony")
253exists, retrying for cluster 26 3.45943
118exists, retrying for cluster 28 0.624635
7exists, retrying for cluster 33 0.87125
118exists, retrying for cluster 41 3.36873
147exists, retrying for cluster 42 3.01096
119exists, retrying for cluster 47 3.38714
Saving _problems/test_integration-40.R
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 12 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_integration.R:37:5'): increasing theta decreases chi2 between Cluster and Batch assign ──
Expected `sum(((obj0$O - obj0$E)^2)/obj0$E)` > `sum(((obj1$O - obj1$E)^2)/obj1$E)`.
Actual comparison: 376.2 <= 382.6
Difference: -6.4 <= 0
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 12 ]
Error:
! Test failures.
Execution halted
Check History
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 27, 2026
tests
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(harmony)
Loading required package: Rcpp
• This is Harmony2 version 2.0.5
• Read the guide: run vignette("quickstart", packag
...[truncated]...
tch assign ──
Expected `sum(((obj0$O - obj0$E)^2)/obj0$E)` > `sum(((obj1$O - obj1$E)^2)/obj1$E)`.
Actual comparison: 376.2 <= 382.6
Difference: -6.4 <= 0
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 12 ]
Error:
! Test failures.
Execution halted
OK 9 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 13, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 14, 2026
tests
Running ‘testthat.R’ [8s/18s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(harmony) Loading required package: Rcpp • This is Harmony2 version 2.0.3 • Read the guide: run vignette() • Get h ...[truncated]... tchList(expr, classes, parentenv, handlers) 5. └─harmony:::harmonize(harmonyObj, max.iter.harmony, verbose) 6. └─harmonyObj$moe_correct_ridge_cpp() [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ] Error: ! Test failures. Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 2.5Mb
libs 1.3Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/harmony.Rcheck/00install.out' for details.
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 2.5Mb
libs 1.3Mb
NOTE 8 OK · 6 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
compiled code
File ‘harmony/libs/harmony.so’: Found non-API call to R: ‘R_UnboundValue’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.
compiled code
File 'harmony/libs/x64/harmony.dll': Found non-API call to R: 'R_UnboundValue' Compiled code should not call non-API entry points in R. See 'Writing portable packages' in the 'Writing R Extensions' manual, and section 'Moving into C API compliance' for issues with the use of non-API entry points.
compiled code
File ‘harmony/libs/harmony.so’: Found non-API call to R: ‘R_UnboundValue’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 2.5Mb
libs 1.3Mb
ERROR 7 OK · 6 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
compiled code
File ‘harmony/libs/harmony.so’: Found non-API call to R: ‘R_UnboundValue’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.
whether package can be installed
Installation failed. See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/harmony.Rcheck/00install.out’ for details.
compiled code
File 'harmony/libs/x64/harmony.dll': Found non-API call to R: 'R_UnboundValue' Compiled code should not call non-API entry points in R. See 'Writing portable packages' in the 'Writing R Extensions' manual, and section 'Moving into C API compliance' for issues with the use of non-API entry points.
compiled code
File ‘harmony/libs/harmony.so’: Found non-API call to R: ‘R_UnboundValue’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 2.5Mb
libs 1.3Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 11.8Mb
sub-directories of 1Mb or more:
data 2.9Mb
doc 2.5Mb
libs 6.3Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
data 2.7Mb
doc 2.5Mb
libs 1.3Mb