Changeset 1487:a19de361ce52 in orange-bioinformatics


Ignore:
Timestamp:
10/11/11 14:26:18 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
097a25b50bf57f10fa627be1978006a47c654019
Message:

Changed STRING base url (the old one with port 8080 stopped responding).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiPPI.py

    r1358 r1487  
    2121 
    2222from Orange.misc import lru_cache 
     23 
    2324import sqlite3 
     25import urllib2 
     26import posixpath 
     27import shutil 
    2428 
    2529class PPIDatabase(object): 
     
    505509            tmpfile.close() 
    506510            os.rename(tmpfilename, basename) 
    507              
    508         links = "http://www.string-db.org:8080/newstring_download/protein.links.{version}.txt.gz" 
    509         actions = "http://www.string-db.org:8080/newstring_download/protein.actions.{version}.txt.gz" 
    510         aliases = "http://www.string-db.org:8080/newstring_download/protein.aliases.{version}.txt.gz" 
     511        base_url = "http://www.string-db.org/newstring_download/" #protein.links.v9.0.txt.gz 
     512        links = base_url + "protein.links.{version}.txt.gz" 
     513        actions = base_url + "protein.actions.{version}.txt.gz" 
     514        aliases = base_url + "protein.aliases.{version}.txt.gz" 
    511515         
    512516        download(links.format(version=version), dir) 
Note: See TracChangeset for help on using the changeset viewer.