R script for Gene ID Mapping?
0
0
Entering edit mode
2.9 years ago
shrgur • 0

Hey everyone,

I have two files;

enter image description here

I want to create a new file with two columns ie. reaction ID and its corresponding Gene ID.

Is there a command similar to grep in R? if so, how can I use it in this scenario?

I would really appreciate any input/suggestions regarding this. Thank you!!

mapping R IDmapping geneID • 625 views
ADD COMMENT
4
Entering edit mode

Please search StackOverflow or any forum online for the merge or dplyr::join functions. R does have a grep but it won't be of much use here.

You'll need to use tidyr::separate_rows on the second column of the first dataset, then dplyr::inner_join on the datasets to get your results.


Related StackOverflow posts:

ADD REPLY

Login before adding your answer.

Traffic: 2758 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6