Hi everyone! I have performed a differential expression analysis of some RNA-seq data. Now I want to use Bedtools to measure the distance between these sequences and a lot of target genes (~10000). I have these genes' names in a CSV file (just one column), but they are written in an old nomenclature. I also have a CSV file with two columns: all the genes' names of the organism and their updated counterparts. The question is, how do I use this file to obtain a new file with the target genes in the new nomenclature? I thought about make a bash script but it seemed too inefficient. Maybe is there a R package that could help? Thanks in advance
Show us an example of what the two files look like. You may be able to use
comm
command to identify rows that at common between two files (sorted on column 1).First file:
Second file:
I'd like to export the right column names parallel to the common names between te left column and the first file. I will try comm. Thank you!