99d2d1aced54a9673b9e25b6c1f992acd20535e1,common/data_refinery_common/rna_seq.py,,get_quant_results_for_experiment,#Any#,74
Before Change
.order_by("-created_at")\
.first()
if result:
results.append(result)
return results
def get_quant_files_for_results(results: List[ComputationalResult]):
After Change
.order_by("-created_at")
// Annotate each sample in the experiment with the id of the most recent computational result
computational_results_ids = experiment.samples.all().annotate(
latest_computational_result_id=Subquery(newest_computational_results.values("id")[:1])
)\
.filter(latest_computational_result_id__isnull=False)\
.values_list("latest_computational_result_id", flat=True)
// return the computational results that match those ids
return ComputationalResult.objects.all().filter(
id__in=computational_results_ids
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: AlexsLemonade/refinebio
Commit Name: 99d2d1aced54a9673b9e25b6c1f992acd20535e1
Time: 2019-08-16
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/rna_seq.py
Class Name:
Method Name: get_quant_results_for_experiment
Project Name: comic/grand-challenge.org
Commit Name: 28935ea4d7796ada4ad387e79c4357b21c5b9ad6
Time: 2020-03-26
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth
Project Name: AlexsLemonade/refinebio
Commit Name: 3fefda55783af82f565b757c44b70f5cb95fa779
Time: 2019-11-22
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: Experiment
Method Name: to_metadata_dict