comparison data_manager/resource_building.py @ 49:1c40456be1db draft

"planemo upload commit dfde13321c02dff11b11d336f5b19e1cac2df64e-dirty"
author proteore
date Mon, 03 Feb 2020 14:08:39 +0000
parents 09d9fd9b2d8c
children 7a6d8aafb269
comparison
equal deleted inserted replaced
48:09d9fd9b2d8c 49:1c40456be1db
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/normal_tissue.tsv.zip" 53 url = "https://www.proteinatlas.org/download/rna_tissue_hpa.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