Hi,
I have a list of pathways with their gene symbols in a list structure.
> my_list $PW1 [1] "Abca1" "Abca2" "Abca3" "Abca17" "Abca4" "Abca7" "Abca12" "Abca13" "Abca5" "Abca6" [11] "Pik3cd" ... $PW2 [1] "Atm" "Chek2" "Atr" "Chek1" "Cdkn2a" "Mdm2" "Mdm4" "Trp53" "Cdkn1a" "Ccnd1" [11] "Ccnd2" ...
I would like to convert the gene symbols into entrez IDs.
I know it is possible to do with the select command from the org.Mm.eg.db
at least for one character vector.
> head(select(org.Mm.eg.db, keys = my_list[[1]], columns = "ENTREZID", keytype = "SYMBOL")) SYMBOL ENTREZID 1 Abca1 11303 2 Abca2 11305 3 Abca3 27410 4 Abca17 381072 5 Abca4 11304 6 Abca7 27403
But I would like to do it for the complete list and still be able to keep the list structure
thanks in advance
Assa