Changeset 1632:9cf919d0f343 in orange-bioinformatics for Orange/bioinformatics/obiGeneAtlas.py


Ignore:
Timestamp:
04/16/12 19:53:28 (2 years ago)
Author:
mitar
Branch:
default
Message:

Fixing imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/bioinformatics/obiGeneAtlas.py

    r1625 r1632  
    1717""" 
    1818 
    19 import os, sys 
     19from __future__ import absolute_import 
     20 
     21import os, shelve, sys 
    2022from collections import defaultdict, namedtuple 
    21  
     23from contextlib import closing 
     24 
     25from Orange.orng import orngServerFiles 
    2226from Orange.utils import serverfiles 
     27 
     28from . import obiGene 
    2329 
    2430GeneResults = namedtuple("GeneResults", "id name synonyms expressions") 
     
    3137AtlasExperiment = ExperimentExpression 
    3238## 
    33 import shelve 
    34 import orngServerFiles 
    35 import obiGene 
    36 from contextlib import closing 
    3739 
    3840def _cache(name="AtlasGeneResult.shelve"): 
     
    217219 
    218220    organism = "+".join(organism.lower().split()) 
    219     from obiGeneSets import GeneSets, GeneSet 
     221    from .obiGeneSets import GeneSets, GeneSet 
    220222     
    221223    def display_string(name): 
     
    258260        return dd[name] 
    259261    else: 
    260         import obiTaxonomy as tax 
     262        import .obiTaxonomy as tax 
    261263        ids = tax.to_taxid(name, mapTo=TAXID_TO_ORG.keys()) 
    262264        if ids: 
     
    446448    """ Return the `EF <http://www.ebi.ac.uk/efo/>`_ (Experimental Factor) ontology 
    447449    """ 
    448     import obiOntology 
    449     import orngServerFiles 
     450    from . import obiOntology 
     451    from . import orngServerFiles 
    450452    # Should this be in the OBOFoundry (Ontology) domain 
    451453    try: 
Note: See TracChangeset for help on using the changeset viewer.