Changeset 438:fb8e21603729 in orange-bioinformatics


Ignore:
Timestamp:
08/04/08 12:40:55 (6 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
8435f8e0acc5a87bd00dd14a62723aa1697ec151
Message:

-added geneInfoLabel
-added warning No terms found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGOEnrichmentAnalysis.py

    r416 r438  
    7979        OWGUI.checkBox(self.geneAttrIndexCombo.box, self, "useAttrNames", "Use attribute names", disables=[(-1, self.geneAttrIndexCombo)], callback=self.SetUseAttrNamesCallback) 
    8080        self.geneAttrIndexCombo.setDisabled(bool(self.useAttrNames)) 
     81        self.geneInfoLabel = OWGUI.label(self.geneAttrIndexCombo.box, self, "0 genes on input signal") 
    8182         
    8283        
     
    280281        self.closeContext() 
    281282        self.clusterDataset = data 
     283        self.geneInfoLabel.setText("") 
    282284        if data: 
    283285            self.SetGenesComboBox() 
     
    409411                self.information(0) 
    410412        self.UpdateGOAliases(clusterGenes) 
     413        self.geneInfoLabel.setText("%i genes on input" % len(clusterGenes)) 
    411414        self.clusterGenes = clusterGenes = filter(lambda g: g in go.loadedAnnotation.aliasMapper, clusterGenes) 
    412415        referenceGenes = None 
     
    443446        else: 
    444447            self.terms = terms = {} 
     448        if not self.terms: 
     449            self.warning(0, "No terms found") 
     450        else: 
     451            self.warning(0) 
    445452        self.progressBarFinished() 
    446453        self.treeStructDict = {} 
Note: See TracChangeset for help on using the changeset viewer.