Skip to content

Commit

Permalink
feat: adding store/strucvarInfo (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jan 30, 2024
1 parent 8a276d8 commit 9c84f26
Show file tree
Hide file tree
Showing 7 changed files with 3,791 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/mehari/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { LinearStrucvar, Seqvar } from '../../lib/genomicVars'
import { SeqvarResult, StrucvarResult } from './types'

/** API base URL to use. */
const API_BASE_URL = '/internal/proxy/pubtator3-api'
const API_BASE_URL = '/internal/proxy/mehari/'

/**
* Client for Mehari API requests.
Expand Down
6 changes: 3 additions & 3 deletions src/api/mehari/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export interface StrucvarResult$Api {
/** The original query records. */
query: SeqvarQuery$Api
/** The resulting records for the scored genes. */
result: SeqvarResultEntry$Api[]
result: GeneTranscriptEffects$Api[]
}

/**
Expand All @@ -455,7 +455,7 @@ export interface StrucvarResult {
/** The original query records. */
query: SeqvarQuery
/** The resulting records for the scored genes. */
result: SeqvarResultEntry[]
result: GeneTranscriptEffects[]
}

/**
Expand All @@ -467,7 +467,7 @@ class StrucvarResult$Type {
return {
version: Version.fromJson(json.version),
query: SeqvarQuery.fromJson(json.query),
result: json.result.map((entry) => SeqvarResultEntry.fromJson(entry))
result: json.result.map((entry) => GeneTranscriptEffects.fromJson(entry))
}
}
}
Expand Down
Loading

0 comments on commit 9c84f26

Please sign in to comment.