Add text and HTML representations to DE model classes - #1070
Merged
Conversation
Inspecting a differential expression model now summarizes the input data, the layer, the design and whether the model has been fitted, rendered as an HTML table in Jupyter. Adds a public `is_fitted` property to `LinearModelBase` to back the summary. Closes #611
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1070 +/- ##
==========================================
+ Coverage 74.15% 79.46% +5.30%
==========================================
Files 52 53 +1
Lines 7291 7545 +254
==========================================
+ Hits 5407 5996 +589
+ Misses 1884 1549 -335
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #611
Inspecting a differential expression model now shows a summary of the input data, the design and the fit state, both as plain text and as an HTML table in Jupyter.
Both representations are driven by a single
_summary()hook, soMethodBasecovers the simple tests andLinearModelBaseadds the design rows.The HTML uses inline styles relative to the surrounding text, so it renders on light and dark themes and is not affected by the notebook's own table CSS.
LinearModelBasegains a publicis_fittedproperty to back theFittedrow;PyDESeq2.plot_disp_estsnow uses it instead of probing forself.dds.