meichendong / SCDC

SCDC
42 stars 9 forks source link

Issue with Vigenette #36

Open srmeetd opened 1 year ago

srmeetd commented 1 year ago

Hi,

I getting following error, while following the vignette.

error in switch(method, BR = lad.fit.BR(x, y, tol), EM = lad.fit.EM(x,  : 
  EXPR must be a length 1 vector

The above error is after merging the 3 scRNA datasets and while running SCDC_ENSEMBLE

daweibushen commented 1 year ago

also in Vigenette, get the same error: H6 has common genes 14688 ...

WNNLS Converged at iteration 22

Searching ENSEMBLE weight by Sum of Squared Errors or Sum of Abs Errors ......

Searching ENSEMBLE weight by LAD -- Minimizing mAD of Y measurement

Error in switch(method, BR = lad.fit.BR(x, y, tol), EM = lad.fit.EM(x, : EXPR must be a length 1 vector Traceback:

  1. SCDC_ENSEMBLE(bulk.eset = pseudo.seger$pseudo_eset, sc.eset.list = pancreas.sc, . ct.varname = "cluster", sample = "sample", truep = pseudo.seger$truep[complete.cases(pseudo.seger$truep), . ], ct.sub = c("alpha", "beta", "delta", "gamma"), search.length = 0.01)
  2. L1pack::lad(y ~ . - 1, data = dt, method = c("BR", "EM"))
  3. lad.fit(x, y, method, tol, maxiter) anyone sovled?