Mercurial > repos > proteore > proteore_data_manager
comparison data_manager/resource_building.py @ 55:9fda95925297 draft
"planemo upload commit ba5a199cfc995bbac148163698af2bbcef9cc40b-dirty"
| author | proteore |
|---|---|
| date | Mon, 08 Jun 2020 14:49:19 +0000 |
| parents | 109fc5236204 |
| children | bd67848a789f |
comparison
equal
deleted
inserted
replaced
| 54:109fc5236204 | 55:9fda95925297 |
|---|---|
| 281 return (path) | 281 return (path) |
| 282 | 282 |
| 283 def download_from_nextprot_ftp(file,target_directory) : | 283 def download_from_nextprot_ftp(file,target_directory) : |
| 284 ftp_dir = "pub/current_release/ac_lists/" | 284 ftp_dir = "pub/current_release/ac_lists/" |
| 285 path = os.path.join(target_directory, file) | 285 path = os.path.join(target_directory, file) |
| 286 ftp = ftplib.FTP("ftp.nextprot.org"") | 286 ftp = ftplib.FTP("ftp.nextprot.org") |
| 287 ftp.login("anonymous", "anonymous") | 287 ftp.login("anonymous", "anonymous") |
| 288 ftp.cwd(ftp_dir) | 288 ftp.cwd(ftp_dir) |
| 289 ftp.retrbinary("RETR " + file, open(path, 'wb').write) | 289 ftp.retrbinary("RETR " + file, open(path, 'wb').write) |
| 290 ftp.quit() | 290 ftp.quit() |
| 291 return (path) | 291 return (path) |
