Entering edit mode
16 months ago
Manuel Sokolov Ravasqueira
▴
110
Hi!
I have a list of genes with abs(logfc) >= 0.9 like this:
> genes
[1] "MDM2" "CDK4" "CCND2" "FLNA" "RBP7" "EDNRB" "EPHA4" "PTPRB" "PPP1R13L" "TPM1" "INSR"
[12] "DLC1" "WNT7B" "SFRP1" "IFI16" "ZMAT3" "MEST" "AKT3" "CD36" "SRD5A1" "KIF23" "EPOR"
So the list has the gene symbols. When doing enrichGO i can set the option keyType="Symbol" and use the genes without having to convert to entrez id or other representation like this:
go_enrich <- enrichGO(gene = genes,
universe = names(gene_list),
OrgDb = org.Hs.eg.db,
keyType="SYMBOL",
ont = "ALL",
pAdjustMethod = "fdr",
pvalueCutoff = 0.05,
readable = TRUE)
Currently I am using enricher like this which i don't believe to be right:
C3_t2g <- msigdbr(species = "Homo sapiens", category = "C3") %>%
dplyr::select(gs_name, gene_symbol)
em <- enricher(genes, TERM2GENE=C3_t2g)
How can I sent the arguments for enricher in order to the list of genes to be symbols and not entrez id?
Thank you!
Enricher is using gene symbols here:
em <- enricher(genes, TERM2GENE=C3_t2g)
because you havegs_name
andgene_symbol
columns in yourC3_t2g
table. So I don't see there is any problem here.Here is the illustration-