opencloning 0.2.7.2__py3-none-any.whl → 0.2.7.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,9 +32,11 @@ async def get_sequence_accessions_from_assembly_accession(assembly_accession: st
32
32
  resp = await async_get(url, headers=headers)
33
33
  data = resp.json()
34
34
  if 'reports' in data:
35
- return [report['refseq_accession'] for report in data['reports']] + [
36
- report['genbank_accession'] for report in data['reports']
35
+ refseq_accessions = [report['refseq_accession'] for report in data['reports'] if 'refseq_accession' in report]
36
+ genbank_accessions = [
37
+ report['genbank_accession'] for report in data['reports'] if 'genbank_accession' in report
37
38
  ]
39
+ return refseq_accessions + genbank_accessions
38
40
  elif 'total_count' in data:
39
41
  raise HTTPException(400, f'No sequence accessions linked, see {url}')
40
42
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opencloning
3
- Version: 0.2.7.2
3
+ Version: 0.2.7.3
4
4
  Summary: Backend of OpenCloning, a web application to generate molecular cloning strategies in json format, and share them with others.
5
5
  License: MIT
6
6
  Author: Manuel Lera-Ramirez
@@ -34,12 +34,12 @@ opencloning/endpoints/primer_design.py,sha256=ItPUa7bBW9JOOfTuLj0yNnF9UmQ-I_0l3i
34
34
  opencloning/gateway.py,sha256=qaefWKjfASuVU_nXnCCoDepQq1jhNINNW0VifkCLVC0,9123
35
35
  opencloning/get_router.py,sha256=l2DXaTbeL2tDqlnVMlcewutzt1sjaHlxku1X9HVUwJk,252
36
36
  opencloning/main.py,sha256=l9PrPBMtGMEWxAPiPWR15Qv2oDNnRoNd8H8E3bZW6Do,3750
37
- opencloning/ncbi_requests.py,sha256=9dWkJL98ZUzxr3K6_R7MWjMEAX1DvkK8n_XrvFcz9fo,5388
37
+ opencloning/ncbi_requests.py,sha256=JrFc-Ugr1r1F4LqsdpJZEiERj7ZemvZSgiIltl2Chx8,5547
38
38
  opencloning/primer_design.py,sha256=nqCmYIZ7UvU4CQwVGJwX7T5LTHwt3-51_ZcTZZAgT_Y,9175
39
39
  opencloning/pydantic_models.py,sha256=S3ehXeynVlYJQK-G96D0jApMp7dn-eRg1di9d0DbsEc,15045
40
40
  opencloning/request_examples.py,sha256=QAsJxVaq5tHwlPB404IiJ9WC6SA7iNY7XnJm63BWT_E,2944
41
41
  opencloning/utils.py,sha256=wsdTJYliap-t3oa7yQE3pWDa1CR19mr5lUQfocp4hoM,1875
42
- opencloning-0.2.7.2.dist-info/LICENSE,sha256=VSdVE1f8axjIh6gvo9ZZygJdTVkRFMcwCW_hvjOHC_w,1058
43
- opencloning-0.2.7.2.dist-info/METADATA,sha256=wiwBqTVMSOMVGGTUOlC3KRpvbxECHDc3cavN3ZmtxDU,8429
44
- opencloning-0.2.7.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
- opencloning-0.2.7.2.dist-info/RECORD,,
42
+ opencloning-0.2.7.3.dist-info/LICENSE,sha256=VSdVE1f8axjIh6gvo9ZZygJdTVkRFMcwCW_hvjOHC_w,1058
43
+ opencloning-0.2.7.3.dist-info/METADATA,sha256=SFtmhPNvDi61Qp9JYNcsiQop9I_zYOPyGfeus-Etbf4,8429
44
+ opencloning-0.2.7.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
+ opencloning-0.2.7.3.dist-info/RECORD,,