Skip to content

Commit

Permalink
feat: include VRS location digest if identify is True (0.9 branch) (#196
Browse files Browse the repository at this point in the history
)
  • Loading branch information
korikuzma committed Jun 19, 2023
1 parent 4807f01 commit 5c8f92b
Show file tree
Hide file tree
Showing 10 changed files with 279 additions and 297 deletions.
1 change: 1 addition & 0 deletions src/ga4gh/vrs/extras/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ def _post_process_imported_allele(self, allele):

if self.identify:
allele.id = ga4gh_identify(allele)
allele.location.id = ga4gh_identify(allele.location)

return allele

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/metadata/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul
response:
Expand All @@ -34,7 +34,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 19 Sep 2022 15:07:38 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -50,7 +50,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181219&end=55181220
response:
Expand All @@ -64,7 +64,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:38 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -80,7 +80,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181218&end=55181219
response:
Expand All @@ -94,7 +94,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:38 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -110,7 +110,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181220&end=55181221
response:
Expand All @@ -124,7 +124,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:38 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -140,7 +140,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181219&end=55181219
response:
Expand All @@ -154,7 +154,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:38 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -170,7 +170,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181220&end=55181220
response:
Expand All @@ -184,7 +184,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:39 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -200,7 +200,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: http://localhost:5000/seqrepo/1/sequence/ga4gh:SQ.F-LrLMe1SRpfUZHkQmvkVKFEGaoDeHul?start=55181219&end=55181220
response:
Expand All @@ -214,7 +214,7 @@ interactions:
Content-Type:
- text/plain; charset=utf-8
Date:
- Mon, 19 Sep 2022 15:07:39 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Server:
- Werkzeug/2.2.2 Python/3.10.4
status:
Expand All @@ -230,7 +230,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=NC_000007.14&rettype=fasta&seq_start=55181220&seq_stop=55181220&tool=bioutils&email=biocommons-dev@googlegroups.com
response:
Expand All @@ -254,30 +254,28 @@ interactions:
Content-Type:
- text/plain
Date:
- Mon, 19 Sep 2022 15:07:39 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Keep-Alive:
- timeout=4, max=40
NCBI-PHID:
- 322C565FBBD0434500004A8944D27A9C.1.1.m_5
- D0BD7A022C7C6FC500006196F8D78473.1.1.m_5
NCBI-SID:
- 2EC1575CB80AC993_35F8SID
- 91F987A90C4FE16A_3574SID
Referrer-Policy:
- origin-when-cross-origin
Server:
- Finatra
Set-Cookie:
- ncbi_sid=2EC1575CB80AC993_35F8SID; domain=.nih.gov; path=/; expires=Tue, 19
Sep 2023 15:07:39 GMT
- ncbi_sid=91F987A90C4FE16A_3574SID; domain=.nih.gov; path=/; expires=Mon, 17
Jun 2024 01:04:34 GMT
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
X-RateLimit-Limit:
- '3'
X-RateLimit-Remaining:
- '2'
X-Test-Test:
- test42
- '1'
X-UA-Compatible:
- IE=Edge
X-XSS-Protection:
Expand All @@ -297,7 +295,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.28.1
- python-requests/2.29.0
method: GET
uri: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=NC_000007.14&rettype=fasta&seq_start=55181220&seq_stop=55181240&tool=bioutils&email=biocommons-dev@googlegroups.com
response:
Expand All @@ -322,30 +320,28 @@ interactions:
Content-Type:
- text/plain
Date:
- Mon, 19 Sep 2022 15:07:40 GMT
- Sat, 17 Jun 2023 01:04:34 GMT
Keep-Alive:
- timeout=4, max=40
NCBI-PHID:
- 322C565FBBD0434500006189494D7737.1.1.m_5
- D0BD7A022C7C6FC500003D96FBDCD3A4.1.1.m_5
NCBI-SID:
- 7A77E41933C60584_3EA6SID
- 06B6CAAF520F975A_7A87SID
Referrer-Policy:
- origin-when-cross-origin
Server:
- Finatra
Set-Cookie:
- ncbi_sid=7A77E41933C60584_3EA6SID; domain=.nih.gov; path=/; expires=Tue, 19
Sep 2023 15:07:40 GMT
- ncbi_sid=06B6CAAF520F975A_7A87SID; domain=.nih.gov; path=/; expires=Mon, 17
Jun 2024 01:04:34 GMT
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
X-RateLimit-Limit:
- '3'
X-RateLimit-Remaining:
- '2'
X-Test-Test:
- test42
- '1'
X-UA-Compatible:
- IE=Edge
X-XSS-Protection:
Expand Down
Loading

0 comments on commit 5c8f92b

Please sign in to comment.