Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 6:9c75521e4a64 draft
planemo upload commit d703392579d96e480c6461ce679516b12cefb3de-dirty
| author | dchristiany |
|---|---|
| date | Fri, 19 Oct 2018 04:19:36 -0400 |
| parents | 2de84fea8367 |
| children | d16a52bf0e5b |
comparison
equal
deleted
inserted
replaced
| 5:1dc87bb457c7 | 6:9c75521e4a64 |
|---|---|
| 216 | 216 |
| 217 name_dict={"human" : "Homo sapiens", "mouse" : "Mus musculus", "rat" : "Rattus norvegicus"} | 217 name_dict={"human" : "Homo sapiens", "mouse" : "Mus musculus", "rat" : "Rattus norvegicus"} |
| 218 name = name_dict[species]+" ("+time.strftime("%d-%m-%Y")+")" | 218 name = name_dict[species]+" ("+time.strftime("%d-%m-%Y")+")" |
| 219 | 219 |
| 220 data_table_entry = dict(value = species+"_id_mapping_"+ time.strftime("%d-%m-%Y"), name = name, path = path) | 220 data_table_entry = dict(value = species+"_id_mapping_"+ time.strftime("%d-%m-%Y"), name = name, path = path) |
| 221 _add_data_table_entry(data_manager_dict, data_table_entry, "id_mapping_tab") | 221 _add_data_table_entry(data_manager_dict, data_table_entry, "id_mapping") |
| 222 | 222 |
| 223 def download_from_uniprot_ftp(file,target_directory) : | 223 def download_from_uniprot_ftp(file,target_directory) : |
| 224 ftp_dir = "pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/" | 224 ftp_dir = "pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/" |
| 225 path = os.path.join(target_directory, file) | 225 path = os.path.join(target_directory, file) |
| 226 ftp = ftplib.FTP("ftp.uniprot.org") | 226 ftp = ftplib.FTP("ftp.uniprot.org") |
