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: 4
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: okfn-brasil/serenata-de-amor
Commit Name: a460674c772c2c0685148c8eb94b1743afea71d5
Time: 2017-09-28
Author: cuducos@users.noreply.github.com
File Name: jarbas/dashboard/admin.py
Class Name: ReimbursementModelAdmin
Method Name: get_search_results
Project Name: MTG/freesound
Commit Name: ad58b661aaee955bf8dc8086d805d56485f8c53a
Time: 2019-07-24
Author: alastair.porter@upf.edu
File Name: sounds/views.py
Class Name:
Method Name: sounds