I am new to Gene Ontology (GO) analysis and would like to classify and visualize the annotations. Here is the background and the steps I have taken so far:
I annotated the bacterial whole genome using Prokka. I performed
Interproscan on the annotated genome using the Galaxy server.
The Interproscan results are in a tabular format, and column 14 contains the GO IDs.
Example GO IDs from column 14:
column 14
GO:0003677
GO:0003677
GO:0005524|GO:0016887
GO:0005524|GO:0016020|GO:0055085
GO:0003723|GO:0046872
GO:0004521|GO:0004534|GO:0006396|GO:0008270|GO:0090501
etc
I would like to classify these annotations into the Cellular Component, Biological Process, and Molecular Function categories, and then plot a graph similar to the provided image.
I am comfortable using either R or Python for this analysis. Could you please provide guidance on how to achieve this using the preferred language?
Thank you in advance for your help!
library(clusterProfiler) library(org.Hs.eg.db) data <- read.delim("A3_InterProScan.tabular", header = TRUE, sep = "\t") go_ids <- data[,14] gene_symbols <- mapIds(org.Hs.eg.db, keys = go_ids, keytype = "GO", column = "SYMBOL") gene_symbols <- gene_symbols[!is.na(gene_symbols)] enrich_result <- enrichGO(gene = gene_symbols, OrgDb = org.Hs.eg.db)
$\endgroup$