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
• 1,679 views
•
link
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.
• 0 views
•
link
Log in to answer this question.