Thanks for the hint. I managed to solve. But now, getting another error from the same command Guangchuang Yu :
Error in validObject(.Object) :
invalid class “groupGOResult” object: invalid object for slot "gene" in class "groupGOResult": got class "data.frame", should be or extend class "character"
I used the following code (df_0.05 is the dataframe from DESeq2 output containing entries with padj < 0.05):
geneList <- as.vector(df_0.05$log2FoldChange)
names(geneList) <- df_0.05$entrezgene
ggo <- clusterProfiler::groupGO(gene = gene, OrgDb = org.my_species.eg.db, ont = "BP", level = 3, readable = TRUE)
• 0 views
•
link