Changeset 1828:857938f13079 in orange-bioinformatics for _bioinformatics/obiGeneSets.py


Ignore:
Timestamp:
07/01/13 15:11:05 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Added an organisms shortname() function to the obiTaxonomy.py to add short names to geneset tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSets.py

    r1825 r1828  
    333333        title = "Gene sets: " + ", ".join(hierarchy) + \ 
    334334            ((" (" + taxname + ")") if org != None else "") 
    335         tags = list(hierarchy) + [ "gene sets", taxname ] + \ 
     335        tags = list(hierarchy) + [ "gene sets", taxname ] + obiTaxonomy.shortname(org) +\ 
    336336            ([ "essential" ] if org in obiTaxonomy.essential_taxids() else [] ) 
    337337        serverFiles.upload(sfdomain, fn, tfname, title, tags) 
     
    359359    return hierd 
    360360 
    361 def load_local(hierarchy, organism): 
     361 
     362 
     363 
    362364    files = map(lambda x: x[:2], list_local()) 
    363365    hierd = build_hierarchy_dict(files) 
Note: See TracChangeset for help on using the changeset viewer.