-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add reference genome compatibility modal #161
Conversation
Deploying bedhost-ui with
|
Latest commit: |
a68595a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://4be06fa3.bedhost.pages.dev |
Branch Preview URL: | https://genome-compatibility.bedhost.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
ui/src/pages/bed-splash.tsx
Outdated
data: genomeStats, | ||
} = useBedGenomeStats({ | ||
md5: bedId, | ||
autoRun: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we always want to auto run this you can probably just set it in the query hook
ui/src/queries/useBedGenomeStats.ts
Outdated
const { data } = await api.get<BedGenomeStatsResponse>(`/bed/${md5}/genome-stats`); | ||
return data; | ||
}, | ||
enabled: enabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw you had autoRun
... do we want to always run? Could just get rid of it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, just set enabled to !!md5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good. One suggestion, is there a way to add links to refgenie for genomes?
I forgot, let me add before we merge. |
Added a simple modal with table to show ranking of reference genome compatibilities for now. Is it worth adding the other metrics besides tier_ranking from the /bed/bed_id/genome-stats endpoint?