Commits

Flashpoint committed fecd89f

Changed the labels in miRNA files on the Orange server

Comments (0)

Files changed (1)

server_update/updatemiRNA.py

 import zipfile
 
 import Orange.bio.obiTaxonomy as tax
+from Orange.bio.obimiRNA import toTaxo
 
 def fastprint(filename,mode,what):
     
                 org = re.findall('/(\S{3,4})_\S{3}miRNA\.txt',filename)[0]
                 type_file = re.findall(org+'_(\S*)miRNA\.txt',filename)[0]
                 label = re.findall('/(\S{3,4}_\S{3}miRNA?)\.txt',filename)[0]
-                
+    
+                org = tax.name(str(toTaxo.get(org)))
+
                 if type_file == 'mat':
                     serverFiles.upload("miRNA", label, filename, title="miRNA: %s mature form" % org, tags=["miRNA"])
                     serverFiles.unprotect("miRNA", label)