Changeset 1583:2b90e7c95085 in orange-bioinformatics for obiGene.py


Ignore:
Timestamp:
03/05/12 13:51:06 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Fixed a bug in obiGene (umatch did not work in Match objects). Gene set signatures method now accept examples from different domains on the input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiGene.py

    r1578 r1583  
    545545 
    546546class Match(object): 
    547     pass 
     547 
     548    def umatch(self, gene): 
     549        """Returns an unique (only one matching target) target or None""" 
     550        mat = self.match(gene) 
     551        return mat[0] if len(mat) == 1 else None 
    548552  
    549553class MatchAliases(Match): 
Note: See TracChangeset for help on using the changeset viewer.