Search
Question: edgeR change first column to row name
0
11 months ago by
jattnicole290 wrote:

rownames( counts ) <- raw.data[ , 1 ] # gene names

colnames( counts ) <- paste(c(rep("C_R",4),rep("T_R",3)),c(1:4,1:3),sep="") # sample names

However, Error in row.names<-.data.frame(*tmp*, value = value) : invalid 'row.names' length In addition: Warning message: Setting row names on a tibble is deprecated.

How I can solve the problem.

modified 11 months ago by Aaron Lun20k • written 11 months ago by jattnicole290
1
11 months ago by
Aaron Lun20k
Cambridge, United Kingdom
Aaron Lun20k wrote:

Well, the warning and error messages are pretty informative; the length of raw.data[,1] doesn't match the number of rows in counts, and you can't set row names on a tibble. This should be straightforward for you to fix if you just have a look at what counts and raw.data are. More generally, this question does not seem to be related to edgeR, and this support site is the wrong place to be asking general R programming questions.