I have a list of genes from a transcriptome, their GO IDs, and their annotations. I want to take out all the putative defense related genes from this dataset and put it into another graph for a figure. Does anyone know a good bioinformatics way of taking out genes with certain functions from a dataset that doesn't involve having prior knowledge of all the genes in charge of defense? So if I were to take out genes based on GO IDs, what GO IDs do I need to take out genes related to immune defense? How do you usually approach this problem?
I've been taking out genes related to defense by searching for the GO ID 0006952 (defense response), is that enough?
Thanks for the help!