Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 33:cdeffb3670c3 draft
planemo upload commit c89c5deac442c0c2aa52b24f2c5af4b290773fc0-dirty
author | dchristiany |
---|---|
date | Mon, 28 Jan 2019 08:44:47 -0500 |
parents | 76924e57a230 |
children | 0c0586ac3e29 |
comparison
equal
deleted
inserted
replaced
32:76924e57a230 | 33:cdeffb3670c3 |
---|---|
77 | 77 |
78 with requests.Session() as s: | 78 with requests.Session() as s: |
79 download = s.get(query) | 79 download = s.get(query) |
80 decoded_content = download.content.decode('utf-8') | 80 decoded_content = download.content.decode('utf-8') |
81 cr = csv.reader(decoded_content.splitlines(), delimiter='\t') | 81 cr = csv.reader(decoded_content.splitlines(), delimiter='\t') |
82 #cr = list(cr) | |
83 | 82 |
84 uni_dict = build_dictionary(cr) | 83 uni_dict = build_dictionary(cr) |
85 | 84 |
86 #columns of data table peptide_atlas | 85 #columns of data table peptide_atlas |
87 date = time.strftime("%d-%m-%Y") | 86 date = time.strftime("%d-%m-%Y") |