Skip to content

Commit

Permalink
feat: use api/mehari rather than api/dotty in store/geneInfo (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Feb 9, 2024
1 parent 3e039da commit 5f50789
Show file tree
Hide file tree
Showing 5 changed files with 1,029 additions and 5,335 deletions.
2 changes: 1 addition & 1 deletion src/api/mehari/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import createFetchMock from 'vitest-fetch-mock'

import { GenomeBuild } from '@/pbs/mehari/txs'
import { GenomeBuild } from '../../pbs/mehari/txs'

import { SeqvarImpl } from '../../lib/genomicVars'
import { LinearStrucvarImpl } from '../../lib/genomicVars'
Expand Down
4 changes: 2 additions & 2 deletions src/api/mehari/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GeneTranscriptsResponse } from '@/pbs/mehari/server'
import { GeneTranscriptsResponse } from '../../pbs/mehari/server'

import type { LinearStrucvar, Seqvar } from '../../lib/genomicVars'
import { urlConfig } from '../../lib/urlConfig'
Expand Down Expand Up @@ -92,7 +92,7 @@ export class MehariClient {
): Promise<GeneTranscriptsResponse> {
const urlGenomeBuild = GenomeBuild[genomeBuild]
const url =
`${this.apiBaseUrl}/transcripts?hgncId=${hgncId}&` +
`${this.apiBaseUrl}/genes/txs?hgncId=${hgncId}&` +
`genomeBuild=${urlGenomeBuild}&pageSize=${pageSize}` +
(nextPageToken ? `&next_page_token=${nextPageToken}` : '')

Expand Down
Loading

0 comments on commit 5f50789

Please sign in to comment.