I assume there would be a simple statistical test to perform this, but I can't find anything while searching.
My dataset has SNP variants that are associated with genes for n=25 "cancer" and n=25 "normal". If a gene has a variant the gene symbol is listed. So if patient five had 7 mutations in ATF4, that ATF4 would appear 7 times in the dataset for that instance.
I'm wondering if there is a statistical test or package in R to determine which genes are more "enriched" in each group.