Entering edit mode
7.1 years ago
Rose
▴
20
Hello,
I 'm trying to find the pathway names corresponding to pathway IDs of mus musculus in R. My input file is in the form below. Kegg_ID
- 4520
- 04145, 04514, 04650, 04670, 04810, 05140, 05144, 05146, 05150, 05323, 05416
- 4622
- 00561, 00564, 01100, 04070
I found some working codes in other posts, but those input files contain only one ID per column. Please help me.
Thanks in advance.
Hi, Thanks for the code, It works fine, but In my file, In the second column, I have 11 IDs for a gene 'Fer'. So, I should get the pathway names of them separated by commas in a column. To be more specific, All pathway names of that gene should be in one column. Similarly, for all other genes.
Could you please update the example data and expected output?
This is the example data.
GENE_NAME KEGG_ID
Expected Output : GENE_NAME KEGG_ID PathwayName
code:
Input (replace x1,x2,x3 and x4 with appropriate genes):
output:
So sorry for the late reply.. I was able to get the results by this way. Thanks a lot.