Changeset 1331:9136fa4c0778 in orange-bioinformatics


Ignore:
Timestamp:
02/24/11 16:49:07 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
fc48eaccf266e0d08eb726b8044d061372255aea
Message:
  • changed info label to show only matches for unique genes
  • removed check box for case sensitive name matching (is unused)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWKEGGPathwayBrowser.py

    r1272 r1331  
    207207        self.geneAttrCombo.setDisabled(bool(self.useAttrNames)) 
    208208         
    209         OWGUI.checkBox(box, self, "caseSensitive", "Case sensitive gene matching", callback=self.Update) 
     209#        OWGUI.checkBox(box, self, "caseSensitive", "Case sensitive gene matching", callback=self.Update) 
    210210        OWGUI.separator(self.controlArea) 
    211211         
     
    446446            self.loadedOrganism = org_code 
    447447        uniqueGenes, conflicting, unknown = self.org.get_unique_gene_ids(set(genes), self.caseSensitive) 
    448         self.infoLabel.setText("%i genes on input\n%i (%.1f%%) genes matched" % (len(genes), len(uniqueGenes), 100.0*len(uniqueGenes)/len(genes) if genes else 0.0))   
     448        genesCount = len(set(genes)) 
     449        self.infoLabel.setText("%i unique gene names on input\n%i (%.1f%%) genes names matched" % (genesCount, len(uniqueGenes), 100.0*len(uniqueGenes)/genesCount if genes else 0.0))   
    449450#        if conflicting: 
    450451#            print >> sys.stderr, "Conflicting genes:", conflicting 
Note: See TracChangeset for help on using the changeset viewer.