Hello all,
I am an R beginner and I want to do a fisher test 2x2 to analyze the proportions of mutation/wild type gene in control / disease groups. But I want to get the p-value of the fisher test for each one of hundreds of genes that I have in a .txt automatically. In my file each row is a gene and I have 4 columns, each one represents one square of the contingency table for that gene, as shown in the example attached.
Due to the big number of genes, I can´t mount manually a contingency table for each one and calculate the fisher test individually. Could you please inform me about an R package, a code or an online platform that could calculate the Fisher´s p-value for each one of the genes, considering the columns as the components of the contingency table in a big matrix file?
I would appreciate any suggestion,
Thanks.