I have a differntially expressed geneset. Some genes have an specific element in their promoters. I want to perform a hypergeometric test to see whether genes that have this element of their promoters are more likely to be differentially expressed than genes that do not have this element. I found that below one should be the relevent R function.
phyper(success-in-sample-1, success-in-bkgd, failure-in-bkgd, sample-size, lower.tail= FALSE);
What are the relevent parameters of my dataset. I can extract all the information from the dataset but dont understand what are they.