This repository is a central place to share and view Nextstrain phylogenetic analyses. It uses the nextstrain.org community sharing feature, which automatically serves datasets stored in this GitHub repository.
The nextstrain.org platform is configured to monitor this repository. Any correctly formatted dataset files (.json) placed in the auspice/ directory on the main branch will automatically become available for viewing online.
The key is to follow a specific file naming convention, which determines the final URL for your dataset.
To add your own analysis results, please follow these steps.
After running your Nextstrain analysis, you will have an output JSON file located in the auspice/ directory of your build. This is the file you need to share (e.g., zika.json).
This is the most important step. The filename must follow this format:
repository-name_part1_part2_..._partN.json
repository-name: This must be the literal name of this repository, which isnextstrain-share._part1_part2_...: These are underscore-separated names that describe your dataset. They will be converted into slash-separated parts in the final URL.
Example:
If you have an analysis of Dengue Serotype 3, a good filename would be:
nextstrain-share_dengue_serotype-3.json
Place your correctly named JSON file inside the auspice/ directory in this repository.
If you have write access to this repo, you can commit the file directly. Otherwise, the best way to contribute is by opening a Pull Request:
- Fork this repository.
- Clone your fork to your local machine.
- Create a new branch for your dataset (e.g.,
git checkout -b add-dengue-dataset). - Add your file to the
auspice/folder. - Commit and push your changes to your fork.
- Open a Pull Request from your fork to this repository's
mainbranch.
Once a dataset is merged into the main branch, it may take 5-10 minutes for it to become available on nextstrain.org due to caching.
The URL structure is:
https://nextstrain.org/community/<USERNAME>/<REPO-NAME>@main/<PART1>/<PART2>
File in auspice/ directory |
Resulting Nextstrain URL |
|---|---|
nextstrain-share_mpox-analysis.json |
nextstrain.org/community/LucvZon/nextstrain-share@main/mpox-analysis |
nextstrain-share_zika.json |
nextstrain.org/community/LucvZon/nextstrain-share@main/zika |
nextstrain-share_dengue_serotype-3.json |
.../nextstrain-share@main/dengue/serotype-3 (Hypothetical example) |
To see a list of all available datasets, visit the base community URL: https://nextstrain.org/community/LucvZon/nextstrain-share@main
The process is similar for sharing Nextstrain Narratives.
- Place your markdown file (
.md) in thenarratives/directory. - Follow the same file naming convention (
nextstrain-share_my-narrative.md). - The URL will be accessible under
/narratives/.