Changeset 1829:fecd89f0776c in orange-bioinformatics for server_update/updatemiRNA.py


Ignore:
Timestamp:
07/02/13 19:49:47 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Changed the labels in miRNA files on the Orange server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server_update/updatemiRNA.py

    r1773 r1829  
    88 
    99import Orange.bio.obiTaxonomy as tax 
     10from Orange.bio.obimiRNA import toTaxo 
    1011 
    1112def fastprint(filename,mode,what): 
     
    282283                type_file = re.findall(org+'_(\S*)miRNA\.txt',filename)[0] 
    283284                label = re.findall('/(\S{3,4}_\S{3}miRNA?)\.txt',filename)[0] 
    284                  
     285     
     286                org = tax.name(str(toTaxo.get(org))) 
     287 
    285288                if type_file == 'mat': 
    286289                    serverFiles.upload("miRNA", label, filename, title="miRNA: %s mature form" % org, tags=["miRNA"]) 
Note: See TracChangeset for help on using the changeset viewer.