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

Addition of a new SNP Distance Search function for the Cov2Tree #592

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DLiarakos
Copy link

Created a modal popup which appears when clicking a button set to only appear for the Cov2Tree. Users can then input a name of a node somewhere on the tree and a SNP distance threshold. Upon hitting search and after around a minute of processing time, the modal will then display a table which contains the first 100 samples on the tree within the specified distance, as well as the distance itself and the sample's PANGO lineage and GenBank Accession Number. The table also includes a button to download the full list of samples in .tsv format. As for additions to the codebase, this is all accomplished through 2 standalone JS scripts (nodeMapper.js and extract.js) and a new component I designed myself (snpModal.jsx), with only a small change to the SearchPanel component, meaning the overall code base for Taxonium is changed very little.

Added snpModal.jsx, main component for rendering SNP Distance Search
Added two files, nodeMapper.js and extract.js, which are used in generating the output for the SNP distance search. nodeMapper makes a map of the entire tree in order to perform downwards traversal, and extract does the actualn traversal and calculation of SNP distance.
Copy link

vercel bot commented May 20, 2024

@DLiarakos is attempting to deploy a commit to the theosanderson's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cov2tree ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 0:25am

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.

None yet

1 participant