theosanderson / taxonium

A tool for exploring very large trees in the browser
http://taxonium.org
GNU General Public License v3.0
95 stars 17 forks source link

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

Open DLiarakos opened 1 month ago

DLiarakos commented 1 month ago

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.

vercel[bot] commented 1 month ago

@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.

vercel[bot] commented 1 month ago

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