Error in y$xd["ESR1", ] : subscript out of bounds
Hello,
I have a dataframe with 1200 samples as columns and 20,000 genes as rownames. I had saved the dataframe into txt file. And using PAM50 for classification. I got the R code from here [https://genome.unc.edu/pubsup/breastGEO/PAM50.zip]
head(df)[1:3]
S1 S2 S3
100130426 0.0 0.00 0.9066
100133144 16.3644 9.2659 11.6228
100134869 12.9316 17.3790 9.2294
10357 52.1503 69.7553 154.2974
10431 408.0760 563.8934 1360.8341
136542 0.0000 0.0000 0.0000
After using the R code from PAM50 I got the following error. Can anyone tell me what it means?
Error in y$xd["ESR1", ] : subscript out of bounds
• 124 views
•
link
0 answers
No answers yet.
Log in to answer this question.
As the entire R code is not available, I would guess there is no column
ESR1in your data frame. Follow this on how to check whether a column exists in your data frame.