Changeset 1643:2cfa80dac3d3 in orange-bioinformatics for _bioinformatics/obiGeneSets.py


Ignore:
Timestamp:
04/20/12 03:16:59 (2 years ago)
Author:
mitar
Branch:
default
Children:
1644:e455af7d00bd, 1645:b542c4ab17b1
Message:

Fixing some imports. Marking widgets as prototypes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSets.py

    r1636 r1643  
    1313from Orange.orng import orngServerFiles 
    1414 
    15 from . import obiGeneSets, obiGO, obiKEGG, obiTaxonomy 
     15from . import obiGO, obiKEGG, obiTaxonomy 
    1616 
    1717sfdomain = "gene_sets" 
     
    9999 
    100100    def update(self, input): 
     101        from . import obiGeneSets 
    101102        if isinstance(input, obiGeneSets.GeneSets): 
    102103            super(GeneSets, self).update(input) 
     
    156157    def split_by_hierarchy(self): 
    157158        """ Splits gene sets by hierarchies. """ 
     159        from . import obiGeneSets 
    158160        hd = dict((h,obiGeneSets.GeneSets()) for h in  self.hierarchies()) 
    159161        for gs in self: 
     
    163165def goGeneSets(org): 
    164166    """Returns gene sets from GO.""" 
     167    from . import obiGeneSets 
    165168 
    166169    ontology = obiGO.Ontology() 
     
    182185    Returns gene sets from KEGG pathways. 
    183186    """ 
    184     from . import obiKEGG2 as obiKEGG 
     187    from . import obiKEGG2 as obiKEGG, obiGeneSets 
    185188     
    186189    kegg = obiKEGG.KEGGOrganism(org) 
     
    250253    For now the description is skipped. 
    251254    """ 
     255 
     256    from . import obiGeneSets 
     257 
    252258    def hline(s): 
    253259        tabs = [tab.strip() for tab in s.split("\t")] 
     
    467473    hierarchy is a tuple also. 
    468474    """ 
     475    from . import obiGeneSets 
    469476    result = obiGeneSets.GeneSets() 
    470477 
Note: See TracChangeset for help on using the changeset viewer.