Skip to content

NCBI-Codeathons/beyond-phylogenies-team6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team Project Name

List of participants and affiliations:

  • Chaoran Chen, ETH Zurich, Basel Switzerland (Team Leader)
  • Adrian Lison, ETH Zurich, Basel Switzerland
  • Auguste Rimaite, ETH Zurich, Basel Switzerland
  • Jennifer Chang, Fred Hutchinson Cancer Research Center
  • Theo Sanderson, Francis Crick Institute
  • Alex Kramer, UC Santa Cruz

Project Goals

Approach

Extend Taxonium

Edit Lucid Chart

Extend CoV-Spectrum

Link to the CoV-Spectrum instance during the codeathon

New Cladeness API

curl --header "Content-Type: application/json" \
  --request POST \
  --data '["ON875035", "ON861689"]' \
  https://cladeness.cov-spectrum.org/mrca

Results

Extensions to Cov-Spectrum

1. Cladeness API

We created an API endpoint to compute a statistic we call cladeness, which is defined as the percentage of a clade occupied by a set of samples, where the clade is that at the MRCA of the set of samples.

2. CoV-Spectrum Tree Statistics

We added a Tree Statistics panel to CoV-Spectrum that computes the MRCA of the selected sample set, and displays the cladeness and size of clusters within the MRCA subtree.


Screen Shot 2022-07-28 at 10 46 38 PM


3. Link to Taxonium

In each cluster above, users can click the button to open the ancestor node in Taxonium (displaying the global SARS-CoV-2 tree)

Extensions to Taxonium

1. Import Nextstrain JSON trees

Taxonium can now load tree files in the Nextstrain JSON (v2) format.

Example Nextstrain JSON file (monkeypox)

Trees can be loaded by file upload or by providing a URL.

Screen Shot 2022-07-27 at 9 48 59 AM

Example tree displayed in Taxonium, with metadata and mutations parsed from Nextstrain file:

Screen Shot 2022-07-27 at 9 58 13 AM

View this tree: https://taxonium.org/?treeUrl=https%3A%2F%2Fns-proxy.vercel.app%2Fapi%2Fcharon%2FgetDataset%3Fprefix%3Dmonkeypox%2Fhmpxv1&ladderizeTree=true&treeType=nextstrain

2. Export Nextstrain JSON trees

Taxonium can now export subtrees to Nextstrain JSON format.

In server-side mode (for example at cov2tree.org) Taxonium can directly load a subtree into Nextstrain by clicking View clade in Nextstrain. In local mode (when uploading a tree file from your computer or a URL), the Nextstrain JSON for a subtree can be downloaded (Download Nextstrain JSON) and then loaded into auspice.us for visualization.

image

3. Open Taxonium clade in CoV-Spectrum

In Taxonium's global SARS-CoV-2 instance (cov2tree.org), clades in CoVSpectrum can now be viewed by clicking Find this clade in CovSpectrum at a given node.

taxcov

Future Work

References