fix bug for inf fc#103
Conversation
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #103 +/- ##
==========================================
+ Coverage 75.31% 75.35% +0.04%
==========================================
Files 9 9
Lines 1045 1047 +2
==========================================
+ Hits 787 789 +2
Misses 258 258 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Motivation and Context
This PR fixes a bug in the filtering logic for handling infinite fold change (log2FC) values in .filterGetSubnetworkFromIndraInput. Previously, when include_infinite_fc was FALSE, rows with infinite log2FC could remain in the input (causing adj.pvalue == 0 entries and other downstream issues). The change makes removal of infinite log2FC conditional on the presence of a log2FC column and ensures infinite values are excluded when include_infinite_fc is FALSE while still allowing explicit inclusion or force-inclusion behavior.
Changes
Testing
Coding guidelines / violations