Skip to content

Commit 016be2a

Browse files
authored
fix: Different fixes for AutoACMG in REEV (#806)
1 parent 20969f4 commit 016be2a

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

backend/app/api/internal/endpoints/proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ async def reverse_proxy(request: Request) -> Response:
5252
backend_url = settings.BACKEND_PREFIX_CADA_PRIO + url.path.replace(
5353
"/internal/proxy/cada-prio", ""
5454
)
55-
elif url.path.startswith(f"{settings.INTERNAL_STR}/proxy/autoacmg"):
55+
elif url.path.startswith(f"{settings.INTERNAL_STR}/proxy/auto-acmg"):
5656
backend_url = settings.BACKEND_PREFIX_AUTOACMG + url.path.replace(
57-
"/internal/proxy/autoacmg", ""
57+
"/internal/proxy/auto-acmg", ""
5858
)
5959

6060
if backend_url:

backend/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def assemble_cors_origins(cls, v: str | list[str]) -> list[str] | str: # pragma
123123
#: Prefix for the backend of cada-prio service.
124124
BACKEND_PREFIX_CADA_PRIO: str = "http://cada-prio:8080"
125125
#: Prefix for the backend of autoacmg service.
126-
BACKEND_PREFIX_AUTOACMG: str = "http://autoacmg:8000"
126+
BACKEND_PREFIX_AUTOACMG: str = "http://auto-acmg:8080"
127127

128128
#: URL to Redis service.
129129
REDIS_URL: str = "redis://redis:6379"

frontend/src/api/autoacmg/client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('AutoACMGClient', () => {
3333
expect(result).toEqual(AUTOACMG_SEQVAR_RESULT['prediction'])
3434
expect(fetchMocker).toHaveBeenCalledTimes(1)
3535
expect(fetchMocker).toHaveBeenCalledWith(
36-
'/internal/proxy/autoacmg/api/v1/predict/seqvar?variant_name=chr17:41215920:G:T&genome_release=grch37',
36+
'/internal/proxy/auto-acmg/api/v1/predict/seqvar?variant_name=chr17:41215920:G:T&genome_release=grch37',
3737
expect.objectContaining({
3838
method: 'GET',
3939
headers: {

frontend/src/api/autoacmg/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { ConfigError } from '@bihealth/reev-frontend-lib/api/common'
22
import { Seqvar } from '@bihealth/reev-frontend-lib/lib/genomicVars'
33

4-
import { API_INTERNAL_BASE_PREFIX } from '../common'
4+
import { API_INTERNAL_BASE_PREFIX_AUTO_ACMG } from '../common'
55
import { AutoACMGSeqVarResult } from './types'
66

77
//: URL to the AutoACMG API
8-
const API_BASE_URL = `${API_INTERNAL_BASE_PREFIX}proxy/autoacmg/api/v1`
8+
const API_BASE_URL = `${API_INTERNAL_BASE_PREFIX_AUTO_ACMG}/api/v1`
99

1010
export class AutoACMGClient {
1111
private apiBaseUrl: string
@@ -36,6 +36,7 @@ export class AutoACMGClient {
3636
async classifySequenceVariant(seqvar: Seqvar): Promise<AutoACMGSeqVarResult> {
3737
const seqvarName = `chr${seqvar.chrom}:${seqvar.pos}:${seqvar.del}:${seqvar.ins}`
3838

39+
console.log('REQUESTING', this.apiBaseUrl)
3940
const url =
4041
`${this.apiBaseUrl}/predict/seqvar?variant_name=${seqvarName}` +
4142
`&genome_release=${seqvar.genomeBuild}`

frontend/src/api/common/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export const API_INTERNAL_BASE_PREFIX_VIGUNO = '/internal/proxy/viguno'
55
export const API_INTERNAL_BASE_PREFIX_NGINX = '/internal/proxy/nginx'
66
export const API_INTERNAL_BASE_PREFIX_DOTTY = '/internal/proxy/dotty'
77
export const API_INTERNAL_BASE_PREFIX_CADA_PRIO = '/internal/proxy/cada-prio'
8+
export const API_INTERNAL_BASE_PREFIX_AUTO_ACMG = '/internal/proxy/auto-acmg'
89
export const API_V1_BASE_PREFIX = '/api/v1/'

frontend/src/stores/seqvarAcmgRating/store.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import { defineStore } from 'pinia'
88
import { ref } from 'vue'
99

1010
import { AcmgSeqVarClient } from '@/api/acmgSeqvar'
11-
import { AutoACMGClient } from '@/api/autoacmg'
12-
import { AutoACMGPrediction, AutoACMGStrength } from '@/api/autoacmg/types'
11+
import { AutoACMGClient, AutoACMGPrediction, AutoACMGStrength } from '@/api/autoacmg'
1312
import { InterVarClient } from '@/api/intervar'
1413
import {
1514
ALL_ACMG_CRITERIA,

0 commit comments

Comments
 (0)