Commits

Flashpoint  committed 43e5f69

Added short name tags for GO annotations and NCBI gene info/gen history

  • Participants
  • Parent commits e965b42

Comments (0)

Files changed (2)

File server_update/updateGO.py

 #            print "unknown organism name translation for:", org
         print "Uploading", "gene_association." + org + ".tar.gz"
         sf_server.upload("GO", "gene_association." + org + ".tar.gz", filename, title = "GO Annotations for " + orgName,
-                           tags=["gene", "annotation", "ontology", "GO", orgName, "#uncompressed:%i" % uncompressedSize(filename),
+                           tags=["gene", "annotation", "ontology", "GO", orgName + obiTaxonomy.shortname(org), "#uncompressed:%i" % uncompressedSize(filename),
                                  "#organism:"+orgName, "#version:%i" % obiGO.Annotations.version] + (["essential"] if org in essentialOrgs else []))
         sf_server.unprotect("GO", "gene_association." + org + ".tar.gz")
         

File server_update/updateNCBI_geneinfo.py

     print "Uploading", filename
     sf_server.upload("NCBI_geneinfo", "gene_info.%s.db" % taxid, filename,
               title = "NCBI gene info for %s" % obiTaxonomy.name(taxid),
-              tags = ["NCBI", "gene info", "gene_names", obiTaxonomy.name(taxid)] + (["essential"] if taxid in essential else []))
+              tags = ["NCBI", "gene info", "gene_names", obiTaxonomy.name(taxid)] + obiTaxonomy.shortname(taxid) + (["essential"] if taxid in essential else []))
     sf_server.unprotect("NCBI_geneinfo", "gene_info.%s.db" % taxid)
     
     filename = os.path.join(tmpdir, "gene_history.%s.db" % taxid)
     print "Uploading", filename
     sf_server.upload("NCBI_geneinfo", "gene_history.%s.db" % taxid, filename,
               title = "NCBI gene history for %s" % obiTaxonomy.name(taxid),
-              tags = ["NCBI", "gene info", "history", "gene_names", obiTaxonomy.name(taxid)] + (["essential"] if taxid in essential else []))
+              tags = ["NCBI", "gene info", "history", "gene_names", obiTaxonomy.name(taxid)] + obiTaxonomy.shortname(taxid) + (["essential"] if taxid in essential else []))
     sf_server.unprotect("NCBI_geneinfo", "gene_history.%s.db" % taxid)