Changeset 1867:e75d81c7f764 in orange-bioinformatics for _bioinformatics/widgets/OWHeatMap.py


Ignore:
Timestamp:
10/09/13 15:04:06 (7 months ago)
Author:
markotoplak
Branch:
default
Message:

OWHeatMap: selection hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWHeatMap.py

    r1865 r1867  
    12281228        if self.sorted_data: 
    12291229            if self.selected_rows: 
    1230                 examples = [self.sorted_data[i] for i in self.selected_rows] 
     1230                #bug if merge is used does not return enough genes 
     1231                #examples = [self.sorted_data[i] for i in self.selected_rows] 
     1232 
     1233                #uses Merge parameter, but does not work correctly for data with multiple classes 
     1234                examples = [self.sorted_data[i*self.Merge+j] for i in self.selected_rows for j in range(self.Merge) if i*self.Merge+j < len(self.sorted_data)] 
     1235 
    12311236                data = orange.ExampleTable(examples) 
    12321237            else: 
Note: See TracChangeset for help on using the changeset viewer.