Skip to content

Error in harmonyObj$cluster_cpp(): element-wise pow()  #1337

@fbx233

Description

@fbx233

Hi!

I'm trying to use Harmony to correct batch effect

But I encounter the following error:

Harmony 1/10  
0%   10   20   30   40   50   60   70   80   90   100%  
[----|----|----|----|----|----|----|----|----|----|
**************************************************|  
Error in harmonyObj$cluster_cpp() :   
  element-wise pow(): incompatible matrix dimensions: 100x29 and 29x1

My configuration is as follows. And I was running Rcpp_1.0.9 and on the server.

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          1.3                         
year           2022                        
month          03                          
day            10                          
svn rev        81868                       
language       R                           
version.string R version 4.1.3 (2022-03-10)
nickname       One Push-Up
Rcpp version 1.0.13

So,I installing an older version and solve it

devtools::install_version("Rcpp", version = "1.0.8", repos = "http://cran.us.r-project.org/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions