Skip to content

Commit

Permalink
fix: transcript lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Aug 13, 2024
1 parent 3a4e108 commit e03a34f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions client/src/services/ResponseModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,13 @@ export interface GetDomainResponse {
warnings?: string[] | null;
domain: FunctionalDomain | null;
}
/**
* Response model for MANE transcript retrieval endpoint.
*/
export interface GetGeneTranscriptsResponse {
warnings?: string[] | null;
transcripts?: string[];
}
/**
* Response model for MANE transcript retrieval endpoint.
*/
Expand Down
2 changes: 1 addition & 1 deletion server/src/curfu/routers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def get_transcripts_for_gene(request: Request, gene: str) -> dict:
:return: Dict containing transcripts if lookup succeeds, or warnings upon failure
"""
normalized = request.app.state.fusor.gene_normalizer.normalize(gene)
symbol = normalized.gene_descriptor.label
symbol = normalized.gene.label
transcripts = await request.app.state.fusor.cool_seq_tool.uta_db.get_transcripts(
gene=symbol
)
Expand Down
6 changes: 6 additions & 0 deletions server/src/curfu/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ class GetTranscriptsResponse(Response):
transcripts: list[ManeGeneTranscript] | None


class GetGeneTranscriptsResponse(Response):
"""Response model for MANE transcript retrieval endpoint."""

transcripts: list[str] = None


class ServiceInfoResponse(Response):
"""Response model for service_info endpoint."""

Expand Down

0 comments on commit e03a34f

Please sign in to comment.