Skip to content

Commit

Permalink
fix: Input assembly arg for dotty (#141) (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Oct 17, 2023
1 parent d501d98 commit f349e39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export const search = async (searchTerm: string, genomeRelease: string) => {

// First, attempt to resolve using dotty.
const dottyClient = new DottyClient()
const result = await dottyClient.toSpdi(searchTerm)
const result = await dottyClient.toSpdi(
searchTerm,
genomeRelease === 'grch37' ? 'GRCh37' : 'GRCh38'
)
if (result && result?.success) {
const spdi = result.value
searchTerm = `${spdi.contig}:${spdi.pos}:${spdi.reference_deleted}:${spdi.alternate_inserted}`
Expand Down

0 comments on commit f349e39

Please sign in to comment.