dd29eac278afc380f5fe6c3d2c00b7e0c5af6fae,common/data_refinery_common/models/organism.py,Organism,has_quantfile_compendia,#Organism#,137
Before Change
@computed(models.BooleanField(blank=False, null=True))
def has_quantfile_compendia(self):
computed_file = self.qn_target.get_quant_sf_file()
return computed_file.is_compendia and computed_file.quant_sf_only
def __str__(self):
return str(self.name)
After Change
depends=[["primary_compendium_results", ["quant_sf_only"]]],
)
def has_quantfile_compendia(self):
results = CompendiumResult.objects.all().filter(primary_organism=self, quant_sf_only=True)
return results.count() != 0
def __str__(self):
return str(self.name)
def save(self, *args, **kwargs):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: AlexsLemonade/refinebio
Commit Name: dd29eac278afc380f5fe6c3d2c00b7e0c5af6fae
Time: 2021-02-18
Author: samuel.tate@outlook.com
File Name: common/data_refinery_common/models/organism.py
Class Name: Organism
Method Name: has_quantfile_compendia
Project Name: AlexsLemonade/refinebio
Commit Name: 5fd3e7ff426c96acace99480be718072229b0cec
Time: 2019-04-01
Author: kurt.wheeler91@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: OriginalFile
Method Name: needs_downloading
Project Name: AlexsLemonade/refinebio
Commit Name: dd29eac278afc380f5fe6c3d2c00b7e0c5af6fae
Time: 2021-02-18
Author: samuel.tate@outlook.com
File Name: common/data_refinery_common/models/organism.py
Class Name: Organism
Method Name: has_compendia