Ignore:
Timestamp:
06/10/13 14:30:50 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Fixed the bug of having less than 5 genes in a geneset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/prototypes/OWCustomSets.py

    r1819 r1820  
    4646 
    4747        layout = QHBoxLayout() 
    48         box = OWGUI.widgetBox(self.controlArea, "File", orientation=layout) 
     48        box = OWGUI.widgetBox(self.controlArea, "Gene Set Import", orientation=layout) 
    4949 
    5050        icons = standard_icons(self) 
     
    5757        
    5858        # The preview field         
    59         box = OWGUI.widgetBox(self.controlArea, "Available Gene Sets") 
     59        box = OWGUI.widgetBox(self.controlArea, "Imported Gene Sets") 
    6060        self.preview_view = QTreeWidget() 
    6161        self.preview_view.setAllColumnsShowFocus(1) 
     
    160160                item.setText(0, geneset.id) 
    161161                item.setData(1, Qt.DisplayRole, len(geneset.genes)) 
    162                 item.setText(2, ", ".join([geneset.genes.pop() for i in range(5)]) + ", ...") 
     162                item.setText(2, ", ".join(list(geneset.genes)[:5]) + ", ...") 
    163163        else: 
    164164            self.preview_view.clear() 
Note: See TracChangeset for help on using the changeset viewer.