Mercurial > repos > bgruening > chemical_data_sources
comparison get_pubchem/get_pubchem_as_smiles.py @ 2:b65518a007fa draft
Uploaded
author | bgruening |
---|---|
date | Sun, 08 Sep 2013 09:42:57 -0400 |
parents | f653fd06f055 |
children | 021f0ef9474f |
comparison
equal
deleted
inserted
replaced
1:17a3f755d472 | 2:b65518a007fa |
---|---|
11 import subprocess | 11 import subprocess |
12 from multiprocessing import Pool | 12 from multiprocessing import Pool |
13 import tempfile | 13 import tempfile |
14 import shutil | 14 import shutil |
15 | 15 |
16 def main(output, processors = 10): | 16 def main(output, processors = 4): |
17 output_handle = open(output,'w+') | 17 output_handle = open(output,'w+') |
18 | 18 |
19 td = tempfile.mkdtemp() | 19 td = tempfile.mkdtemp() |
20 ftp = ftplib.FTP('ftp.ncbi.nih.gov') | 20 ftp = ftplib.FTP('ftp.ncbi.nih.gov') |
21 ftp.login() | 21 ftp.login() |