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

ADD COMMENTlink modified 4 months ago by Aaron Lun17k • written 4 months ago by jattnicole290
1
gravatar for Aaron Lun
4 months ago by
Aaron Lun17k
Cambridge, United Kingdom
Aaron Lun17k 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 4 months ago • written 4 months ago by Aaron Lun17k
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: 168 users visited in the last hour