Hi bruce.moran, thanks for your response. I cannot instal the tibble package because I've some issue with the dependency of readr and dplyr already install. so I've used the column_to_rownames() function from the package textshape (v1.7.1). I've launch your code but I have an issues, see bellow the console error message :
> geneTF.df.rn <- geneTF.df %>%
+ group_by(geneTF.df$geneID, geneTF.df$TFID) %>%
+ summarise(occurrence = n()) %>%
+ ungroup() %>%
+ as.data.frame() %>%
+ column_to_rownames("geneID")
Error in x[[i]] <- value :
attempt to select more than one element in integerOneIndex
>
Do you have any idea if it's due to the function (that are not the function from the tribble package or it's du to my data) ?
thanks
Hi bruce.moran,
Thanks a lot for your help, finally you last suggestion work well. I will take in count your advice, thanks.
Please do not add an answer unless you're answering the top level question. To provide feedback on someone else's answer, please use the options below:
The "Accept" option is available only for posts (Questions) that you created.
Try this:
But this would fail. Row names must be unique. geneID column has several repetitions. @ clementpch