aertslab / AUCell

AUCell: score single cells with gene regulatory networks
110 stars 26 forks source link

Error in min(thisTrh, 1) : invalid 'type' (list) of argument #3

Closed jaimicore closed 5 years ago

jaimicore commented 5 years ago

HI

I found the following error when running SCENIC (from the tutrorial: runSCENIC_3_scoreCells(scenicOptions, exprMat)).

The error comes from the AUCell_plotTSNE line 127.

Error in min(thisTrh, 1) : invalid 'type' (list) of argument

The variable thisTrh is a list but it crashes because min expects a vector as input.

## This fixes the problem
min(as.vector(thisTrh), 1)

I fixed it in my local version, but I post this so you can fix it for all the users.

Jaime