comparison data_manager/resource_building.py @ 50:7a6d8aafb269 draft

"planemo upload commit 20b2ab253fe8386e248493316760a3fb5ccc309d-dirty"
author proteore
date Mon, 03 Feb 2020 14:38:16 +0000
parents 1c40456be1db
children 55b12ec24a9f
comparison
equal deleted inserted replaced
49:1c40456be1db 50:7a6d8aafb269
48 tissue_name = "HPA full atlas" 48 tissue_name = "HPA full atlas"
49 url = "https://www.proteinatlas.org/download/proteinatlas.tsv.zip" 49 url = "https://www.proteinatlas.org/download/proteinatlas.tsv.zip"
50 table = "proteore_protein_full_atlas" 50 table = "proteore_protein_full_atlas"
51 elif tissue == "HPA_RNA_tissue": 51 elif tissue == "HPA_RNA_tissue":
52 tissue_name = "HPA RNA tissue" 52 tissue_name = "HPA RNA tissue"
53 url = "https://www.proteinatlas.org/download/rna_tissue_hpa.tsv.zip" 53 url = "https://www.proteinatlas.org/download/rna_tissue_consensus.tsv.zip"
54 table = "proteore_protein_atlas_rna_tissue" 54 table = "proteore_protein_atlas_rna_tissue"
55 55
56 output_file = tissue +"_"+ time.strftime("%d-%m-%Y") + ".tsv" 56 output_file = tissue +"_"+ time.strftime("%d-%m-%Y") + ".tsv"
57 path = os.path.join(target_directory, output_file) 57 path = os.path.join(target_directory, output_file)
58 unzip(url, path) #download and save file 58 unzip(url, path) #download and save file