kspham / coldnet

Combinatorial Disease Network
GNU General Public License v3.0
0 stars 0 forks source link

Database #1

Closed kspham closed 9 years ago

kspham commented 9 years ago

Write a script that can download all (human specfic) interaction database.

damatya commented 9 years ago

import urllib

fileURL = 'http://string-db.org/newstring_download/protein.links.v10/9606.protein.links.v10.txt.gz' fileName = '9606.protein.links.v10.txt.gz' outPath = '' data = urllib.URLopener() data.retrieve(fileURL, outPath+fileName)

kspham commented 9 years ago

Code style:

  1. Commit file in python, not writing code in github comments (please read how to use git for commit files to the repository)
  2. No hard code (No link in code) => Export all constant into a json file. http://stackoverflow.com/questions/2835559/parsing-values-from-a-json-file-in-python
damatya commented 9 years ago

I see. I tried to commit a script and its associated json file. Please let me know if you get it...

kspham commented 9 years ago

Fantastic!