Mercurial > repos > jpayne > bioproject_to_srr_2
diff bio2srr.py @ 10:ccec96a537b7
planemo upload for repository https://toolrepo.galaxytrakr.org/view/jpayne/bioproject_to_srr_2/556cac4fb538
author | jpayne |
---|---|
date | Mon, 06 May 2024 00:12:39 -0400 |
parents | f9f1d0a0599a |
children | 7fd0ef5842e7 |
line wrap: on
line diff
--- a/bio2srr.py Sun May 05 23:58:19 2024 -0400 +++ b/bio2srr.py Mon May 06 00:12:39 2024 -0400 @@ -89,7 +89,7 @@ for field, value in replyy.get("result", {}).items(): if "uids" not in field: yield bioproject, field, value["sampledata"] # this is XML, deleriously - sleep(0.1) + sleep(1) biosample_example = """ @@ -156,7 +156,7 @@ response.raise_for_status() reply = response.json() for ids in batched(reply.get("linksets", [{}])[0].get("linksetdbs", [{}])[0].get("links", []), 200): - sleep(0.1) + sleep(0.3) response = requests.get(esummary, params=dict(id=','.join(ids), db="sra", format="json")) response.raise_for_status() replyy = response.json()