app.api.internal#

app.api.internal.endpoints.remote#

Reverse proxies to external/remote services.

app.api.internal.endpoints.remote.ACMG_RATING_KEYS: tuple[str, ...] = ('pvs1', 'ps1', 'ps2', 'ps3', 'ps4', 'pm1', 'pm2', 'pm3', 'pm4', 'pm5', 'pm6', 'pp1', 'pp2', 'pp3', 'pp4', 'pp5', 'ba1', 'bs1', 'bs2', 'bs3', 'bs4', 'bp1', 'bp2', 'bp3', 'bp4', 'bp5', 'bp6', 'bp7')#

Keys for the ACMG rating

class app.api.internal.endpoints.remote.HTTPXClientWrapper#

Bases: object

Wrapper around HTTPX AsyncClient to for graceful startup/shutdown within FastAPI.

async_client: AsyncClient | None = None#
start()#
async stop()#
transport: AsyncHTTPTransport | None = None#
async app.api.internal.endpoints.remote.acmg(request: Request)#

Implement searching for ACMG classification for SNVs and indels. Proxy requests to the WinterVar backend.

Parameters:

request (fastapi.Request) – request

Returns:

ACMG classification

Return type:

dict

async app.api.internal.endpoints.remote.cnv_acmg(request: Request)#

Implement searching for ACMG classification for CNVs. Proxy requests to the wAutoCNV backend.

Parameters:

request (fastapi.Request) – request

Returns:

ACMG classification

Return type:

dict

app.api.internal.endpoints.remote.default_acmg_rating() dict[str, bool]#
async app.api.internal.endpoints.remote.pubtator3_api(request: Request, path: str)#

Proxy requests to the PubTator 3 backend.

Parameters:
  • request (fastapi.Request) – request

  • path (str) – path to append to the backend URL

Returns:

response

Return type:

fastapi.responses.StreamingResponse

async app.api.internal.endpoints.remote.variantvalidator(request: Request, path: str)#

Implement VariantValidator API. Proxy requests to the VariantValidator backend.

Parameters:
  • request (fastapi.Request) – request

  • path (str) – path to append to the backend URL

Returns:

response

Return type:

fastapi.responses.StreamingResponse