Make updating existing DE result more robust (SCP-5952)#2228
Merged
bistline merged 6 commits intodevelopmentfrom Mar 27, 2025
Merged
Make updating existing DE result more robust (SCP-5952)#2228bistline merged 6 commits intodevelopmentfrom
bistline merged 6 commits intodevelopmentfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #2228 +/- ##
============================================
Coverage 70.62% 70.63%
============================================
Files 331 331
Lines 28292 28301 +9
Branches 2464 2464
============================================
+ Hits 19981 19990 +9
Misses 8164 8164
Partials 147 147
🚀 New features to boost your workflow:
|
jlchang
approved these changes
Mar 27, 2025
Contributor
jlchang
left a comment
There was a problem hiding this comment.
Functional review - works as described.
Glad to see DifferentialExpressionResult.find_existing_result, should be quite useful!
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.
BACKGROUND & CHANGES
This update makes the process of updating existing
DifferentialExpressionResultobjects more robust. Previously, there were many corners where finding the associate matrix file or clustering object didn't work properly, which would cause results creation to fail validation because associations weren't set, or it attempted to create a new result object when one already existed. Now, rather than finding associations by matching names,cluster_group_idandmatrix_file_idenable direct association mapping without ambiguity. Convenience methods ofcluster_groupandmatrix_filealso allow loading the associated objects easier. There are also new convenience methods for finding existing DE results. Lastly, in the case of an existing result where the associated clustering object has been renamed, the cached name (i.e.result.cluster_name) is passed to ingest so that all output files for an existing result are consistent. These updates together simplify the logic inIngestJob#create_differential_expression_results.MANUAL TESTING
Epithelial Cells UMAPto.Epithelial Cells)development.log, find the corresponding Batch API call and note that the original name for the cluster was passed forcluster_name(this makes output filenames match the existing results)/exploreresponse is cached)