comparison data_manager/resource_building.py @ 48:09d9fd9b2d8c draft

"planemo upload commit 714703437f238e7295980f96620365b801fd435c-dirty"
author proteore
date Fri, 31 Jan 2020 15:51:40 +0000
parents 488e015576bc
children 1c40456be1db
comparison
equal deleted inserted replaced
47:f89ddc972ad4 48:09d9fd9b2d8c
46 table = "proteore_protein_atlas_tumor_tissue" 46 table = "proteore_protein_atlas_tumor_tissue"
47 elif tissue == "HPA_full_atlas": 47 elif tissue == "HPA_full_atlas":
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":
52 tissue_name = "HPA RNA tissue"
53 url = "https://www.proteinatlas.org/download/normal_tissue.tsv.zip"
54 table = "proteore_protein_atlas_rna_tissue"
51 55
52 output_file = tissue +"_"+ time.strftime("%d-%m-%Y") + ".tsv" 56 output_file = tissue +"_"+ time.strftime("%d-%m-%Y") + ".tsv"
53 path = os.path.join(target_directory, output_file) 57 path = os.path.join(target_directory, output_file)
54 unzip(url, path) #download and save file 58 unzip(url, path) #download and save file
55 tissue_name = tissue_name + " " + time.strftime("%d/%m/%Y") 59 tissue_name = tissue_name + " " + time.strftime("%d/%m/%Y")