99d2d1aced54a9673b9e25b6c1f992acd20535e1,common/data_refinery_common/rna_seq.py,,get_quant_results_for_experiment,#Any#,74
Before Change
if result:
results.append(result)
return results
def get_quant_files_for_results(results: List[ComputationalResult]):
Returns a list of salmon quant results from `experiment`.
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: e9307c97bf45632cf5af96d53d830703d7f8927c
Time: 2018-04-27
Author: ricardobchaves6@gmail.com
File Name: jarbas/chamber_of_deputies/querysets.py
Class Name: ReimbursementQuerySet
Method Name: search_vector
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