This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to find commonly differentially expressed genes between two conditions

I have two different data frame with the list of differentially expressed genes. How do I find common genes between those two different data frames? I was thinking of matching the row names and extracting the common row names between the two data frames. But can anyone please guide me on how I can proceed to tackle this problem? Thank you in advance. This is an example dataframes.

df_1                                        df_2

**gene**                                   **gene**         
CCDC7                                      GABRA3
CNNM1                                      EXTL3      
PAK6                                       SYT7
RPP14                                      CDH1
IDS                                        MRTO4
CFTR                                       VCAN
CNN3                                       PAK6
SYT7                 
ALOX5
rna-seq r rna-seq next-gen sequencing

1 answer

intersect(dataframe1$gene_column, dataframe2$gene_column)

(but not actually a bioinfo question)

Thank you very much. I know it was not purely bioinfo question but I was stuck by the way of thought process.

Log in to answer this question.