Closed helixscript closed 4 years ago
I believe the error arises due to a flaw in the logic behind comparing the paired and matched sites to the reference (at least that's one part). Here we are trying to compare if there are more onco or special genes enriched in the dataset, but while the reference was focusing on unique genes, the query could have repeated genes from either incorporation occurring in multiple areas within the gene or near / within the gene. This has been corrected in commit 49394263bbdc5f2a9020c006177fef251dc1b373.
Additionally, I reviewed the Fisher's Exact test logic and came to the conclusion that it had been overthought. It is now a simpler test that follows what is described in the documentation (testing for gene set enrichment compared to the reference genome).
With these fixes, I've moved the versioning up to 1.0.1. Let me know if this update resolves your issues @everettJK.
There are instances where there are more special genes in the query than in the reference.
tools/rscripts/evaluate_incorp_data.R L1495