Changeset 1931:e58b01520933 in orange-bioinformatics for orangecontrib/bio/obiKEGG/api.py


Ignore:
Timestamp:
12/11/13 23:08:52 (4 months ago)
Author:
markotoplak
Branch:
default
Message:

obiKEGG: added pathway search by genes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orangecontrib/bio/obiKEGG/api.py

    r1875 r1931  
    290290        return _link_targets(self.link("ko", ids=[pathway_id])) 
    291291 
     292    ############################################# 
     293    # Pathways and genes of a specific organism # 
     294    ############################################# 
     295 
     296    def get_genes_pathway_organism(self, organism): 
     297        l = self.link("pathway", organism) 
     298        return map(tuple, l) 
     299 
    292300    ##################### 
    293301    # Pathways by objects 
     
    630638    def get_kos_by_pathway(self, pathway_id): 
    631639        return KeggApi.get_kos_by_pathway(self, pathway_id) 
     640 
     641    @cached_method 
     642    def get_genes_pathway_organism(self, org): 
     643        return KeggApi.get_genes_pathway_organism(self, org) 
     644 
    632645 
    633646 
Note: See TracChangeset for help on using the changeset viewer.