Skip to content
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

Merged
merged 10 commits into from
Feb 18, 2025
Merged

Conversation

sanghoonio
Copy link
Member

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?

Copy link

cloudflare-workers-and-pages bot commented Jan 15, 2025

Deploying bedhost-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: a68595a
Status: ✅  Deploy successful!
Preview URL: https://4be06fa3.bedhost.pages.dev
Branch Preview URL: https://genome-compatibility.bedhost.pages.dev

View logs

@donaldcampbelljr
Copy link
Member

Looks good however, we should clarify for SF:

Sequence Fit: the proportion of shared region lengths in both this BED file and reference genome over the total number of region lengths in the reference genome [precision].

image

Copy link
Member

@donaldcampbelljr donaldcampbelljr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Looks good!

Copy link
Member

@nleroy917 nleroy917 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

data: genomeStats,
} = useBedGenomeStats({
md5: bedId,
autoRun: true,
Copy link
Member

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

const { data } = await api.get<BedGenomeStatsResponse>(`/bed/${md5}/genome-stats`);
return data;
},
enabled: enabled,
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

@khoroshevskyi khoroshevskyi self-requested a review February 18, 2025 20:54
Copy link
Member

@khoroshevskyi khoroshevskyi left a 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?

@sanghoonio
Copy link
Member Author

I forgot, let me add before we merge.

@khoroshevskyi khoroshevskyi merged commit 0feb98d into dev Feb 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants