Changeset 1809:b543c10a4aad in orange-bioinformatics for _bioinformatics/widgets/OWSetEnrichment.py


Ignore:
Timestamp:
05/28/13 13:30:21 (11 months ago)
Author:
markotoplak
Branch:
default
Message:

Gene set enrichment widget detects gene sets with taxid == None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSetEnrichment.py

    r1794 r1809  
    204204            with orngServerFiles.DownloadProgress.setredirect(self.progressBarSet): 
    205205                all, local = obiGeneSets.list_all(), obiGeneSets.list_local() 
    206                 organisms = set(obiTaxonomy.essential_taxids() + [t[1] for t in all]) 
     206                organisms = set(obiTaxonomy.essential_taxids() + filter(None, [t[1] for t in all])) 
    207207            self.progressBarFinished() 
    208208 
     
    268268        for hierarchy, t_id, _ in self.genesets: 
    269269            collect(collection[t_id], hierarchy) 
     270 
     271        #add genesets without species identifiers 
     272        collection[taxid].update(collection[None]) 
    270273        return collection[taxid] 
    271274 
Note: See TracChangeset for help on using the changeset viewer.