This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problem with PAMR (pamr.predict)

I'm trying to use PAMR

I have a training file that looks like:

https://ibb.co/kxa87b

I don't have any problem with my training script.

My test file (test.txt) looks like:

https://ibb.co/hhNMSb

I'm using the following script to "discover" if samples m1,m2,m3,m4,m5 are NOR or INF.

predict.data <- pamr.from.excel("test.txt", 7, sample.labels=TRUE)
pamr.predict(khan.train, predict.data$x, threshold = 3.0)

Obtaining the following error:

Error in x[posid, , drop = FALSE] :

(subscript) logical subscript too long

In addition: Warning messages:

1: In newx - centroid.overall :

longer object length is not a multiple of shorter object length

2: In (newx - centroid.overall)/sd :

longer object length is not a multiple of shorter object length

I think the problem is in my test file but I don't know how to solve it.

Thank you.

r microarray

0 answers

No answers yet.

Log in to answer this question.