-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RE2022-275: refactor filtering handler #584
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #584 +/- ##
==========================================
+ Coverage 47.08% 47.11% +0.03%
==========================================
Files 74 75 +1
Lines 6407 6422 +15
==========================================
+ Hits 3017 3026 +9
- Misses 3390 3396 +6 ☔ View full report in Codecov by Sentry. |
I would structure things a little differently, assuming I'm interpreting what you plan to do correctly. I think you can move all the filtering code to filters.py and abstract out the lines that get the columns:
You'd abstract that into a function / lambda for genome attribs and pass it to the filtering code, then when doing heatmaps you'd make a different function that pulls the heatmap meta and translates it to attribs columns. I still think that it'd be cleaner to make the filters understand heatmap column types directly but that seems like a lot more work than the translation mechanism... |
I'm also wondering if we should put the filter processing code in a new file like filter_processing.py or something |
👍 abstract filter handler to filter_processing.py |
test local endpoint.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of a big refactor, maybe, so I'm leaving things here
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Most of the codes are exact same as existing codes. Just need to abstract them to a new location so that heatmap can use them. |
I was talking about the comment discussing getting rid of the column meta function and just passing it in directly |
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
Co-authored-by: MrCreosote <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than one type hint
Co-authored-by: MrCreosote <[email protected]>
No description provided.