aertslab / RcisTarget

RcisTarget: Transcription factor binding motif enrichment
34 stars 9 forks source link

do.call need a list argument while RcisTarget uses unlist #9

Closed zxystarrian closed 2 years ago

zxystarrian commented 6 years ago

Hi there,

I was running RcisTarget through SCENIC package. But I got an error coming from RcisTarget function that at: aucMatrix <- do.call(rbind, unlist(aucMatrix, recursive = FALSE)[names(geneSets)]) It said there's an error in do.call: second argument must be a list. I wonder how can this work if do.call needs a list while there's an unlist in it?

Looking forward to your help. Thanks!

Best, Xingyu

danielee0707 commented 5 years ago

Same question here

danielee0707 commented 5 years ago

I solved this by reducing the number of cores used. I guess it's a memory problem.

s-aibar commented 5 years ago

Hello, This code needs an unlist to remove one level from the double-nested list returned by foreach. However, I have not been able to reproduce this error (not even adding too many cores, empty geneSets... etc). I have added an error handler that will save the internal data (for debugging) in case it happens again...