VEuPathDB / microbiomeComputations

1 stars 0 forks source link

Add floor to p value calculations #51

Closed asizemore closed 11 months ago

asizemore commented 12 months ago

Learned that if the calculated p-value in deseq (or anywhere really) is less than what the machine can represent, then it gets assigned to 0. That isn't so helpful when we're plotting downstream, so we decided it would be best to create a minimum p value anything that's less than that p value will get recoded as 0. This helps us avoid any issues with computing on different machines, and also lets us set the same floor in the frontend for visualizations when necessary.

I'll suggest 1e-200 as the floor. This should be a constant declared somewhere and then used everywhere we have a p value.