Closed bistline closed 2 months ago
Attention: Patch coverage is 76.19048%
with 10 lines
in your changes missing coverage. Please review.
Project coverage is 69.82%. Comparing base (
4e68f2f
) to head (47c65fb
). Report is 32 commits behind head on development.
Files | Patch % | Lines |
---|---|---|
...avascript/components/upload/ExpressionFileForm.jsx | 58.33% | 5 Missing :warning: |
app/models/study.rb | 37.50% | 5 Missing :warning: |
Great stuff! I'm glad we'll soon enable our differential expression UI for this increasingly common type of single cell study.
Code looks good, and manual tests passed. I suggest two trivial maintainability refinements, no blockers. Thanks for chatting to help me understand why AnnData raw counts are optional for the moment.
FWIW, because I had deleted an earlier AnnData file in my local test study, the current manual test instructions returned a study file record with
file_type: "DELETE"
and a false-negative error. Changingstudy.study_files.first
tostudy.study_files.last
resolved that in my case.
Good call - I also made the same discovery today and started likewise updated my testing behavior. Updating the testing instructions now.
BACKGROUND & CHANGES
This update adds in raw count information fields to the AnnData expression upload UX. This is required work for eventual extraction of raw counts cell names (and downstream enabling differential expression calculations using AnnData files). There is no extraction job being run now - this only persists form data in the database. The values are stored both in the
AnnDataFileInfo#data_fragments
andExpressionFileInfo
documents, and updates propagate to both when saving. This also includes a backfill migration to ensure that existing data is correct (we had not been updating theExpressionFileInfo
document previously).Short demo of new forms:
https://github.com/user-attachments/assets/93738d53-c07b-4818-8da0-f6c8df699ee4
MANUAL TESTING
study_file.ann_data_file_info.find_fragment(data_type: :expression) => {"_id"=>"66b12ab7debe3074889dc6e4",
"taxon_id"=>"6033f530e241391884633745",
"expression_file_info"=> {"library_preparation_protocol"=>"10x 5' v3", "biosample_input_type"=>"Whole cell", "modality"=>"Transcriptomic: unbiased", "is_raw_counts"=>true, "units"=>"raw counts"}, "data_type"=>"expression"}