edgeR change first column to row name
1
0
Entering edit mode
@jattnicole29-13736
Last seen 6.7 years ago

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.

edger tibble • 1.3k views
ADD COMMENT
1
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 5 hours ago
The city by the bay

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 COMMENT

Login before adding your answer.

Traffic: 766 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6