SnapATAC icon indicating copy to clipboard operation
SnapATAC copied to clipboard

Running Error With Integrative Analysis of 10X and snATAC

Open tzhu-bio opened this issue 4 years ago • 3 comments

Error in runHarmony.default(obj = x.sp, eigs.dims = 1:22, meta_data = x.sp@sample): eigs.dim is missing Traceback:

  1. runHarmony(obj = x.sp, eigs.dims = 1:22, meta_data = x.sp@sample)
  2. runHarmony.default(obj = x.sp, eigs.dims = 1:22, meta_data = x.sp@sample)
  3. stop("eigs.dim is missing")

tzhu-bio avatar Jun 17 '20 01:06 tzhu-bio

yes, I also got the same error but has no idea what's going on.

guorongxu avatar Jun 19 '20 18:06 guorongxu

yes, I also got the same error but has no idea what's going on. Hi, did you solve this error?

tzhu-bio avatar Jul 13 '20 12:07 tzhu-bio

You should call runHarmony with eigs.dim instead of eigs.dims. The example provides the following code:

> library(harmony);
> x.after.sp = runHarmony(
    obj=x.sp, 
    eigs.dims=1:22, 
    meta_data=x.sp@sample # sample index
  );

but this should be:

> library(harmony);
> x.after.sp = runHarmony(
    obj=x.sp, 
    eigs.dim=1:22, 
    meta_data=x.sp@sample # sample index
  );

bgorissen avatar Sep 14 '20 17:09 bgorissen