Changeset 1697:1c6e4093f56a in orange-bioinformatics for _bioinformatics/widgets/OWFeatureSelection.py


Ignore:
Timestamp:
07/02/12 13:22:14 (22 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Activate selection in ScoreHist to enable interactive cutoff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWFeatureSelection.py

    r1692 r1697  
    2727from ..obiGEO import transpose 
    2828 
     29 
    2930class ExpressionSignificance_TTest_PValue(ExpressionSignificance_TTest): 
    3031    def __call__(self, *args, **kwargs): 
    3132        return [(key, pval) for key, (t, pval) in \ 
    3233                ExpressionSignificance_TTest.__call__(self, *args, **kwargs)] 
    33      
     34 
     35 
    3436class ExpressionSignificance_TTest_T(ExpressionSignificance_TTest): 
    3537    def __call__(self, *args, **kwargs): 
    3638        return [(key, t) for key, (t, pval) in \ 
    3739                ExpressionSignificance_TTest.__call__(self, *args, **kwargs)] 
    38      
     40 
     41 
    3942class ExpressionSignificance_ANOVA_PValue(ExpressionSignificance_ANOVA): 
    4043    def __call__(self, *args, **kwargs): 
    4144        return [(key, pval) for key, (t, pval) in \ 
    4245                ExpressionSignificance_ANOVA.__call__(self, *args, **kwargs)] 
    43      
     46 
     47 
    4448class ExpressionSignificance_ANOVA_F(ExpressionSignificance_ANOVA): 
    4549    def __call__(self, *args, **kwargs): 
    4650        return [(key, f) for key, (f, pval) in \ 
    4751                ExpressionSignificance_ANOVA.__call__(self, *args, **kwargs)] 
    48      
     52 
     53 
    4954class ExpressionSignificance_Log2FoldChange(ExpressionSignificance_FoldChange): 
    5055    def __call__(self, *args, **kwargs): 
    5156        return [(key, math.log(fold, 2.0) if fold > 1e-300 and fold < 1e300 else 0.0) \ 
    5257                for key, fold in ExpressionSignificance_FoldChange.__call__(self, *args, **kwargs)] 
    53      
     58 
     59 
    5460class ExpressionSignigicance_MannWhitneyu_U(ExpressionSignificance_MannWhitneyu): 
    5561    def __call__(self, *args, **kwargs): 
    5662        return [(key, u) for key, (u, p_val) in \ 
    57                 ExpressionSignificance_MannWhitneyu.__call__(self, *args, **kwargs)]     
    58      
     63                ExpressionSignificance_MannWhitneyu.__call__(self, *args, **kwargs)] 
     64 
     65 
    5966class ScoreHist(OWInteractiveHist): 
    6067    def __init__(self, master, parent=None, type="hiTail"): 
     
    6370        self.setAxisTitle(QwtPlot.xBottom, "Score") 
    6471        self.setAxisTitle(QwtPlot.yLeft, "Frequency") 
    65          
     72        self.activateSelection() 
     73 
    6674    def setBoundary(self, low, hi): 
    6775        OWInteractiveHist.setBoundary(self, low, hi) 
    6876        self.master.update_selected_info_label(low, hi) 
    6977        self.master.commit_if() 
    70              
     78 
     79 
    7180def disable_controls(method): 
    7281    """ Disable the widget's control area during the duration of this call. 
Note: See TracChangeset for help on using the changeset viewer.