This is a test version of Biostars. For the public version, visit https://www.biostars.org.
RankProd RP function length error

I am doing a RankProd for my expression set

my eset has 7 observation with 6 controls and 1 treatment

my cl is 0 0 0 0 0 0 1

when I run the code

RP.out = RP(exprs(eset), cl, logged=TRUE, rand=123)

I get this error

Error in vector("list" , nrow(gr2)) : invalid 'length' argument

I am not sure how to change that gr2 to gr1 if that is the issue.

my RankProd is version 3.4.0 and my R is 3.5.0

rankprod rp gr2

1 answer

Hi,

you need at least >=2 samples in each group to run it. Otherwise, gr2 will become a vector instead of a matrix (nrow(grp2) is NULL) and the code thus get choked.

Log in to answer this question.