Changeset 1633:b8852fdd1a0f in orange-bioinformatics


Ignore:
Timestamp:
04/16/12 20:47:05 (2 years ago)
Author:
mitar
Branch:
default
Message:

Fixing imports.

Location:
Orange/bioinformatics/widgets
Files:
1 added
18 edited

Legend:

Unmodified
Added
Removed
  • Orange/bioinformatics/widgets/OWFeatureSelection.py

    r1632 r1633  
    8383 
    8484from Orange.orng.orngDataCaching import data_hints 
     85 
    8586from .OWGenotypeDistances import SetContextHandler 
    8687from .OWVulcanoPlot import LabelSelectionWidget 
  • Orange/bioinformatics/widgets/prototypes/OWANOVA.py

    r1625 r1633  
    99""" 
    1010 
     11from __future__ import absolute_import 
     12 
    1113import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
    12 from OWWidget import * 
    13 import OWGUI 
    14 #import qt, qwt 
    15  
    16 from OWDataFiles import DataFiles, ExampleSelection 
    17 import Anova, scipy.stats 
    18  
     14import scipy.stats 
     15 
     16from Orange.OrangeWidgets import OWGUI 
     17from Orange.OrangeWidgets.OWWidget import * 
     18 
     19from .. import Anova 
     20from .OWDataFiles import DataFiles, ExampleSelection 
    1921 
    2022class OWANOVA(OWWidget): 
     
    620622 
    621623if __name__=="__main__": 
    622     import OWDataFiles, OWDataFilesSelector, OWDataTable, orngSignalManager 
     624    from . import OWDataFiles, OWDataFilesSelector 
     625    from Orange.orng import orngSignalManager 
     626    from Orange.OrangeWidgets.Data import OWDataTable 
    623627 
    624628    signalManager = orngSignalManager.SignalManager(0) 
  • Orange/bioinformatics/widgets/prototypes/OWApproxProfiles.py

    r1625 r1633  
    99""" 
    1010 
    11 from OWWidget import * 
    12 import OWGUI 
    13 from OWDataFiles import DataFiles 
     11from __future__ import absolute_import 
     12 
    1413import numpy.oldnumeric as Numeric 
    15 import chipstat 
    16 import chipappx 
    17  
     14 
     15from Orange.OrangeWidgets import OWGUI 
     16from Orange.OrangeWidgets.OWWidget import * 
     17 
     18from .. import chipappx, chipstat 
     19from .OWDataFiles import DataFiles 
    1820 
    1921class OWApproxProfiles(OWWidget): 
  • Orange/bioinformatics/widgets/prototypes/OWDataDistance.py

    r1625 r1633  
    99""" 
    1010 
    11 import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
    12 import statc 
    13 import orange, OWGUI 
     11from __future__ import absolute_import 
     12 
    1413from qt import * 
    1514from qtcanvas import * 
    16 from OWWidget import * 
    17 from OWDataFiles import DataFiles 
     15 
     16import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
     17 
     18import orange, statc 
     19from Orange.OrangeWidgets import OWGUI 
     20from Orange.OrangeWidgets.OWWidget import * 
     21 
     22from .OWDataFiles import DataFiles 
    1823 
    1924import warnings 
     
    278283 
    279284if __name__=="__main__": 
    280     import OWDataFiles, orngSignalManager 
     285    from . import OWDataFiles 
     286    from Orange.orng import orngSignalManager 
    281287    signalManager = orngSignalManager.SignalManager(0) 
    282288    a=QApplication(sys.argv) 
  • Orange/bioinformatics/widgets/prototypes/OWDataFiles.py

    r1625 r1633  
    77""" 
    88 
    9 from OWWidget import * 
    10 import OWGUI 
    11 import os, os.path, orange 
     9import os, os.path 
     10 
     11import orange 
     12from Orange.OrangeWidgets.OWWidget import * 
     13from Orange.OrangeWidgets import OWGUI 
    1214 
    1315import warnings 
  • Orange/bioinformatics/widgets/prototypes/OWDataFilesSave.py

    r1625 r1633  
    77""" 
    88 
    9 from OWWidget import * 
    10 import OWGUI 
     9from __future__ import absolute_import 
     10 
    1111import os, orange 
    12 from OWDataFiles import DataFiles 
    1312 
     13from Orange.OrangeWidgets import OWGUI 
     14from Orange.OrangeWidgets.OWWidget import * 
     15 
     16from .OWDataFiles import DataFiles 
    1417 
    1518class OWDataFilesSave(OWWidget): 
  • Orange/bioinformatics/widgets/prototypes/OWDataFilesSelector.py

    r1625 r1633  
    77""" 
    88 
    9 from OWWidget import * 
    10 import OWGUI 
    11 from OWDataFiles import DataFiles, ExampleSelection 
     9from __future__ import absolute_import 
    1210 
     11from Orange.OrangeWidgets import OWGUI 
     12from Orange.OrangeWidgets.OWWidget import * 
     13 
     14from .OWDataFiles import DataFiles, ExampleSelection 
    1315 
    1416class OWDataFilesSelector(OWWidget): 
  • Orange/bioinformatics/widgets/prototypes/OWDifferentiationScale.py

    r1625 r1633  
    33""" 
    44 
     5from __future__ import absolute_import 
     6 
    57import os, sys 
     8import random 
     9from collections import defaultdict 
     10from operator import itemgetter, add 
     11 
    612import numpy 
    7 import random 
    8  
    9 import obiDifscale 
     13 
    1014import Orange 
    11 from operator import itemgetter, add 
    12 from collections import defaultdict 
    13  
    14 from OWWidget import * 
    15 import OWGUI 
     15from Orange.OrangeWidgets import OWGUI 
     16from Orange.OrangeWidgets.OWWidget import * 
     17 
     18from ... import obiDifscale 
    1619 
    1720class OWDifferentiationScale(OWWidget): 
     
    349352         
    350353    def save_graph(self): 
    351         from OWDlgs import OWChooseImageSizeDlg 
     354        from Orange.OrangeWidgets.OWDlgs import OWChooseImageSizeDlg 
    352355        dlg = OWChooseImageSizeDlg(self.scene, parent=self) 
    353356        dlg.exec_() 
  • Orange/bioinformatics/widgets/prototypes/OWDisplayMotifs.py

    r1625 r1633  
    66""" 
    77 
     8from collections import defaultdict 
     9 
    810import orange 
    9 from OWTools import * 
    10 from OWWidget import * 
    11 from OWGraph import * 
    12 import OWGUI 
    13  
    14 from OWGraph import ColorPaletteHSV 
    15  
    16 from collections import defaultdict 
     11from Orange.OrangeWidgets import OWGUI 
     12from Orange.OrangeWidgets.OWGraph import * 
     13from Orange.OrangeWidgets.OWTools import * 
     14from Orange.OrangeWidgets.OWWidget import * 
    1715 
    1816class subBarQwtPlotCurve(QwtPlotCurve): 
  • Orange/bioinformatics/widgets/prototypes/OWEpistasisAnalysis.py

    r1625 r1633  
    66""" 
    77 
    8 import orange, OWGUI, statc, math 
    9 #from qt import * 
    10 #from qtcanvas import * 
    11 from OWWidget import * 
    12 from OWDataFiles import DataFiles, ExampleSelection 
     8from __future__ import absolute_import 
     9 
     10import math 
     11 
     12import orange, statc 
     13from Orange.OrangeWidgets import OWGUI 
     14from Orange.OrangeWidgets.OWWidget import * 
     15 
     16from .OWDataFiles import DataFiles, ExampleSelection 
    1317 
    1418############################################################################## 
  • Orange/bioinformatics/widgets/prototypes/OWExampleSelector.py

    r1625 r1633  
    77""" 
    88 
    9 from OWWidget import * 
     9from __future__ import absolute_import 
     10 
    1011from qttable import * 
    11 import OWGUI 
    12 from OWDataFiles import DataFiles, ExampleSelection 
    13 import chipstat 
     12 
     13from Orange.OrangeWidgets import OWGUI 
     14from Orange.OrangeWidgets.OWWidget import * 
     15 
     16from .. import chipstat 
     17from .OWDataFiles import DataFiles, ExampleSelection 
    1418 
    1519class OWExampleSelector(OWWidget): 
  • Orange/bioinformatics/widgets/prototypes/OWGeneAtlasTissueExpression.py

    r1625 r1633  
    1 """<name>Gene Atlas Tissue Expression</name> 
     1""" 
     2<name>Gene Atlas Tissue Expression</name> 
    23<description></description> 
    34""" 
     5 
     6from __future__ import absolute_import 
     7 
    48import os, sys 
    5 import obiArrayExpress 
    6 import obiGeneAtlas 
     9from collections import defaultdict 
     10import shelve 
     11 
    712import Orange 
    8  
    9 import OWGUI 
    10 from OWWidget import * 
    11  
    12 from collections import defaultdict 
    1313from Orange.utils import lru_cache 
    14  
    15 import orngDataCaching 
    16 import orngServerFiles 
    17 import obiGene 
    18  
    19 import shelve 
     14from Orange.OrangeWidgets import OWGUI 
     15from Orange.OrangeWidgets.OWWidget import * 
     16 
     17from Orange.orng import orngDataCaching, orngServerFiles 
     18 
     19from ... import obiArrayExpress, obiGene, obiGeneAtlas 
    2020 
    2121TAXID_TO_ORG = obiGeneAtlas.TAXID_TO_ORG 
  • Orange/bioinformatics/widgets/prototypes/OWGenomeMap.py

    r1625 r1633  
    77""" 
    88 
    9 import orange, OWGUI, math, glob 
     9import math, glob 
    1010import os.path # to find out where the local files are 
    11 from OWWidget import * 
    12 #from qtcanvas import * 
    13  
    14 from OWGraph import ColorPaletteHSV 
    15  
    16 localdir = os.path.dirname(__file__) or "." 
     11 
     12import orange 
     13from Orange.OrangeWidgets import OWGUI 
     14from Orange.OrangeWidgets.OWGraph import ColorPaletteHSV 
     15from Orange.OrangeWidgets.OWWidget import * 
    1716 
    1817DEBUG = 0 
  • Orange/bioinformatics/widgets/prototypes/OWHypTest.py

    r1625 r1633  
    99""" 
    1010 
     11from __future__ import absolute_import 
     12 
     13import qt, qwt 
     14 
    1115import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
    12 from OWWidget import * 
    13 import OWGUI 
    14 import qt, qwt 
    15 from OWDataFiles import DataFiles, ExampleSelection 
    16 import Anova, scipy.stats 
    17  
     16 
     17import scipy.stats 
     18 
     19from Orange.OrangeWidgets import OWGUI 
     20from Orange.OrangeWidgets.OWWidget import * 
     21 
     22from .. import Anova 
     23from .OWDataFiles import DataFiles, ExampleSelection 
    1824 
    1925class OWHypTest(OWWidget): 
     
    775781 
    776782if __name__=="__main__": 
    777     import OWDataFiles, orngSignalManager 
     783    from . import OWDataFiles 
     784    from Orange.orng import orngSignalManager 
    778785    signalManager = orngSignalManager.SignalManager(0) 
    779786    a=QApplication(sys.argv) 
  • Orange/bioinformatics/widgets/prototypes/OWImputeProfiles.py

    r1625 r1633  
    1010 
    1111import math 
     12 
    1213import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
    13 from OWWidget import * 
    14 import OWGUI 
    15 from OWDataFiles import DataFiles 
    16 import chipstat 
    17 import chipimpute 
    18  
     14 
     15from Orange.OrangeWidgets import OWGUI 
     16from Orange.OrangeWidgets.OWWidget import * 
     17 
     18from .. import chipimpute, chipstat 
     19from .OWDataFiles import DataFiles 
    1920 
    2021class OWImputeProfiles(OWWidget): 
     
    275276    ow.saveSettings() 
    276277 
    277 ##    import OWDataFiles, orngSignalManager 
     278##    from . import OWDataFiles 
     279##    from Orange.orng import orngSignalManager 
    278280##    signalManager = orngSignalManager.SignalManager(0) 
    279281##    a=QApplication(sys.argv) 
  • Orange/bioinformatics/widgets/prototypes/OWNormalization.py

    r1625 r1633  
    1 """<name>Normalization</name> 
     1""" 
     2<name>Normalization</name> 
    23<description>Gene Expression data normalization</description> 
    34""" 
     5 
     6from __future__ import absolute_import 
     7 
    48import os, sys 
    5 from OWWidget import * 
    6 import OWGUI 
    79 
    810import Orange 
     11from Orange.OrangeWidgets import OWGUI 
     12from Orange.OrangeWidgets.OWWidget import * 
    913 
    10 import obiDifscale 
     14from ... import obiDifscale 
    1115 
    1216class OWNormalization(OWWidget): 
  • Orange/bioinformatics/widgets/prototypes/OWNormalize.py

    r1625 r1633  
    1313""" 
    1414 
     15from __future__ import absolute_import 
     16 
    1517import string, math 
     18import types 
     19 
    1620import numpy.oldnumeric as Numeric, numpy.oldnumeric.ma as MA 
    1721import numpy.oldnumeric.mlab as MLab 
    1822import numpy.oldnumeric.linear_algebra as LinearAlgebra 
    1923import numpyExtn 
     24 
    2025import orange 
    21 #from qttable import * 
    22 from OWWidget import * 
    23 import OWGUI, OWToolbars 
    24 from OWGraph import * 
    25 from OWGraphTools import *      # color palletes, user defined curves, ... 
    26 import ColorPalette             # ColorButton 
    27 import types 
    28  
    29 import chipstat 
    30  
    31  
     26from Orange.OrangeWidgets import ColorPalette             # ColorButton 
     27from Orange.OrangeWidgets import OWGUI, OWToolbars 
     28from Orange.OrangeWidgets.OWGraph import * 
     29from Orange.OrangeWidgets.OWGraphTools import *      # color palletes, user defined curves, ... 
     30from Orange.OrangeWidgets.OWWidget import * 
     31 
     32from .. import chipstat 
    3233 
    3334# global debugging variables 
     
    37273728 
    37283729    def test_widget():         
    3729         import OWDataTable, orngSignalManager 
     3730        from Orange.orng import orngSignalManager 
     3731        from Orange.OrangeWidgets.Data import OWDataTable 
    37303732        signalManager = orngSignalManager.SignalManager(0) 
    37313733        a=QApplication(sys.argv) 
  • Orange/bioinformatics/widgets/prototypes/OWProcessChipData.py

    r1625 r1633  
    77""" 
    88 
    9 from OWWidget import * 
    10 import OWGUI 
    11 from OWDataFiles import DataFiles 
    12 import chipstat 
     9from __future__ import absolute_import 
     10 
     11from Orange.OrangeWidgets import OWGUI 
     12from Orange.OrangeWidgets.OWWidget import * 
     13 
     14from .. import chipstat 
     15from .OWDataFiles import DataFiles 
    1316 
    1417class OWProcessChipData(OWWidget): 
Note: See TracChangeset for help on using the changeset viewer.