File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -514,9 +514,9 @@ def set_study_state_after_ingest
514
514
when :image_pipeline
515
515
set_has_image_cache
516
516
when :ingest_anndata
517
+ set_anndata_file_info
517
518
launch_anndata_subparse_jobs if study_file . is_viz_anndata?
518
519
launch_differential_expression_jobs if study_file . is_viz_anndata?
519
- set_anndata_file_info
520
520
end
521
521
set_study_initialized
522
522
end
@@ -741,10 +741,10 @@ def create_differential_expression_results
741
741
Rails . logger . info "Creating differential expression result object for annotation: #{ annotation_identifier } "
742
742
cluster = ClusterGroup . find_by ( study_id : study . id , study_file_id : study_file . id , name : params_object . cluster_name )
743
743
matrix_url = params_object . matrix_file_path
744
- matrix_filename = matrix_url . split ( "gs://#{ study . bucket_id } /" ) . last
745
- matrix_file = StudyFile . where ( study : study , 'expression_file_info.is_raw_counts' => true ) . any_of (
746
- { upload_file_name : matrix_filename } , { remote_location : matrix_filename }
747
- ) . first
744
+ bucket_path = matrix_url . split ( "gs://#{ study . bucket_id } /" ) . last
745
+ matrix_file = StudyFile . where (
746
+ study : , :upload_file_name . in => [ bucket_path , bucket_path . split ( '/' ) . last ]
747
+ ) . detect ( & :is_raw_counts_file? )
748
748
de_result = DifferentialExpressionResult . find_or_initialize_by (
749
749
study : study , cluster_group : cluster , cluster_name : cluster . name ,
750
750
annotation_name : params_object . annotation_name , annotation_scope : params_object . annotation_scope ,
You can’t perform that action at this time.
0 commit comments