Genes associated with GO term

Genes associated with GO term


I’ve read in an older thread that to retrieve all of the gene names associated with a GO id you use the biomaRt package, eg:

ensembl = useMart("ensembl",dataset="hsapiens_gene_ensembl") <- getBM(attributes=c('hgnc_symbol', 
    'ensembl_transcript_id', 'go_id'), filters="go_id", 
    values="GO:0072599", mart = ensembl)

However, I’m not sure this is actually a correct answer since it returns 1 gene annotation compared to the 109 reported on Is there a more nuanced interpretation of what this one gene is? Is it only genes directly related to the term and no child terms? If so, is it appropriate to retrieve all child terms for the purpose of functional enrichment analysis, or to just use the 1 gene directly related to the term?




Read more here: Source link