RankProd RP function length error
1
0
Entering edit mode
5.8 years ago
jaleh.amo • 0

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.3k views
ADD COMMENT
0
Entering edit mode
5.7 years ago
ewre ▴ 250

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.

ADD COMMENT

Login before adding your answer.

Traffic: 3431 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6