Question: RankProd RP function length error
gravatar for jaleh.amo
16 months ago by
jaleh.amo0 wrote:

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 gr2 rp • 417 views
ADD COMMENTlink modified 16 months ago by ewre220 • written 16 months ago by jaleh.amo0
gravatar for ewre
16 months ago by
United States
ewre220 wrote:


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 COMMENTlink written 16 months ago by ewre220
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 939 users visited in the last hour