Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 36:a4811c440b45 draft
planemo upload commit c89c5deac442c0c2aa52b24f2c5af4b290773fc0-dirty
author | dchristiany |
---|---|
date | Mon, 28 Jan 2019 09:43:02 -0500 |
parents | b312ea6438a2 |
children | ec6252ad1a8e |
comparison
equal
deleted
inserted
replaced
35:b312ea6438a2 | 36:a4811c440b45 |
---|---|
82 | 82 |
83 #columns of data table peptide_atlas | 83 #columns of data table peptide_atlas |
84 date = time.strftime("%d-%m-%Y") | 84 date = time.strftime("%d-%m-%Y") |
85 tissue_id = tissue_name+"_"+date | 85 tissue_id = tissue_name+"_"+date |
86 name = tissue_id.replace("-","/").replace("_"," ") | 86 name = tissue_id.replace("-","/").replace("_"," ") |
87 path = os.path.join(output_file) | 87 path = os.path.join(target_directory,output_file) |
88 | 88 |
89 with open(path,"w") as out : | 89 with open(path,"w") as out : |
90 w = csv.writer(out,delimiter='\t') | 90 w = csv.writer(out,delimiter='\t') |
91 w.writerow(["Uniprot_AC","nb_obs"]) | 91 w.writerow(["Uniprot_AC","nb_obs"]) |
92 w.writerows(uni_dict.items()) | 92 w.writerows(uni_dict.items()) |