Makes sense. Thanks a lot!
Also, I have one small question regarding this. After doing the annotation in ChIPseeker, I wanted to do Functional enrichment for the genes. Now, I want to only take the genes which has the ChIPseq peak(H3K4me3 in my case) around +/-2000bp around TSS. The tutorial says, I have to use seq2gene function to get the genes and put it into enrichPathway. The code is as follows:
gene <- seq2gene(peak, tssRegion = c(-1000, 1000), flankDistance = 3000, TxDb=txdb).
How can I configure this to get the genes having the H3K4me3 peaks at their promoter(+/- 2000bp) and put it into pathway analysis? I would really appreciate your help!
Thank you very much!