Search
Question: edgeR change first column to row name
0
gravatar for jattnicole29
9 days 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.

ADD COMMENTlink modified 9 days ago by Aaron Lun16k • written 9 days ago by jattnicole290
1
gravatar for Aaron Lun
9 days ago by
Aaron Lun16k
Cambridge, United Kingdom
Aaron Lun16k 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.

ADD COMMENTlink modified 9 days ago • written 9 days ago by Aaron Lun16k
Please log in to add an answer.

Help
Access

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