Changeset 1830:e965b42c34c6 in orange-bioinformatics for server_update/updatemiRNA.py


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

Added short names to miRNA Orange server files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server_update/updatemiRNA.py

    r1829 r1830  
    284284                label = re.findall('/(\S{3,4}_\S{3}miRNA?)\.txt',filename)[0] 
    285285     
     286                org_taxid = str(toTaxo.get(org)) 
    286287                org = tax.name(str(toTaxo.get(org))) 
    287  
     288                 
    288289                if type_file == 'mat': 
    289                     serverFiles.upload("miRNA", label, filename, title="miRNA: %s mature form" % org, tags=["miRNA"]) 
     290                    serverFiles.upload("miRNA", label, filename, title="miRNA: %s mature form" % org, tags=["miRNA"] + tax.shortname(org_taxid)) 
    290291                    serverFiles.unprotect("miRNA", label) 
    291292                    print '%s mat uploaded' % org 
     
    295296                     
    296297                elif type_file == 'pre': 
    297                     serverFiles.upload("miRNA", label, filename, title="miRNA: %s pre-form" % org, tags=["miRNA"]) 
     298                    serverFiles.upload("miRNA", label, filename, title="miRNA: %s pre-form" % org, tags=["miRNA"] + tax.shortname(org_taxid)) 
    298299                    serverFiles.unprotect("miRNA", label) 
    299300                    print '%s pre uploaded' % org 
Note: See TracChangeset for help on using the changeset viewer.