comparison data_manager/resource_building.py @ 57:149eb9e80717 draft

"planemo upload commit 625bba907f87307a7c954e1fa73438dd3b12fe34-dirty"
author proteore
date Tue, 09 Jun 2020 07:22:26 +0000
parents bd67848a789f
children da9e74d3c40d
comparison
equal deleted inserted replaced
56:bd67848a789f 57:149eb9e80717
567 except : 567 except :
568 print ("wainting 1 hour before trying again") 568 print ("wainting 1 hour before trying again")
569 time.sleep(3600) 569 time.sleep(3600)
570 resp = requests.get(url=query) 570 resp = requests.get(url=query)
571 data = resp.json() 571 data = resp.json()
572 resp = requests.get(url=query)
573 data = resp.json()
574 572
575 #get info from json dictionary 573 #get info from json dictionary
576 mass_mol = data["entry"]["isoforms"][0]["massAsString"] 574 mass_mol = data["entry"]["isoforms"][0]["massAsString"]
577 seq_length = data['entry']["isoforms"][0]["sequenceLength"] 575 seq_length = data['entry']["isoforms"][0]["sequenceLength"]
578 iso_elec_point = data['entry']["isoforms"][0]["isoelectricPointAsString"] 576 iso_elec_point = data['entry']["isoforms"][0]["isoelectricPointAsString"]