comparison data_manager/resource_building.py @ 5:b05fa99ddda2 draft

"planemo upload commit a23ff40d482d58e0425108bf60372e5fcafb847e"
author proteore
date Thu, 06 Feb 2020 04:02:50 -0500
parents e967a99d66b3
children 8f33a6e6e36c
comparison
equal deleted inserted replaced
4:e967a99d66b3 5:b05fa99ddda2
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/rna_tissue_consensus.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")