As of April 2021, we use major version numbers (e.g. v2) to reflect backward incompatible changes to the workflow that likely require you to update your Nextstrain installation. We also use this change log to document new features that maintain backward compatibility, indicating these features by the date they were added.
- Remove
run_pangolin
configuration option from the workflow, since the pangoLEARN tool that this enabled has been deprecated. PR 1164
-
23 October 2024: Update workflow to use Nextclade v3. This includes the removal of unused mutation summary script and rules that expected Nextclade v2 outputs. Dropping the mutation summary rules removed the need for the full alignment rule
align
to produce the insertions and translations outputs, so they have been removed. Thebuild_align
rule no longer produces a separateinsertions.tsv
since insertions are now included in thenextclade_qc.tsv
. PR 1160 -
2 October 2024: Include a new parameter for
clade_recency
undercolors
. This parameter is used to define which clades should receive a color from the standard rainbow palette. A value of6M
will cause clades with strains in the tree sampled within the last 6 months to be colored and earlier strains to not receive a color (and be colored in a palette of grays by Auspice). Thisclade_recency
parameter is used inbuilds.yaml
innextstrain_profiles
to color clades according for the1m
,2m
,6m
andall-time
timepoints. Ifclade_recency
is not supplied then all clades will be colored. PR 1132 -
30 September 2024: Use population-based weighted sampling for
nextstrain_profiles
. This requires a minimum Augur version of 25.3.0. PRs 1106, 1150, 1151 -
31 January 2024: Remove RBD-level related rules and files since this feature has been broken since May 2023 and is no longer relevant. PR 1097
-
30 January 2024: Fix RBD-level coloring by updating clade label and clade parsing. PR 1094
-
14 Dec 2023: Use
nextclade2
binary that makes the version explicit PR 1089 -
17 June 2023: Update subsampling strategy for
nextstrain_profiles
to better equilibrate per-capita sampling rates across geographic regions. Primarily this update breaks out China and India as separate subsampling targets because of their large population sizes. It also fine tunes the per-region sampling targets. After this update, URL structure (ie https://nextstrain.org/ncov/gisaid/global/6m) is unchanged. PR 1074
-
16 May 2023: Update workflow to support Augur v22 which updates the
augur clades
interface and structure of the output files to allow specifying the clade label & coloring keys. Because we use custom scripts to parse these files this worflow also needed updating. This change results in a simplifying of the nCoV pipeline (PR 1000). -
11 April 2023: Elevate XBB.1.16 as new clade 23B. See PR 1059 for the rationale behind this clade update.
-
6 April 2023: Update conda environment dependencies: augur 19.2.0 -> 21.1.0, nextalign/nextclade 2.9.1 -> 2.13.1, iqtree 2.2.0_beta -> 2.2.0.3. PR 1056
-
16 March 2023: Add a build configuration option,
nextclade_dataset
, to allow users to change the Nextclade dataset used for alignment and quality control. For example, settingnextclade_dataset: sars-cov-2-21L
will use the BA.2 (Nextstrain 21L) dataset that provides immune escape and ACE2 binding scores. See the workflow configuration guide for more details. PR 1046 -
30 January 2023: Include new clade 23A correspoding to Pango lineage XBB.1.5. See PR 1043 for the rationale behind this clade update.
-
9 December 2022: Add
immune escape
andace2_binding
from metadata as colorings fornextstrain-open
andnextstrain-gisaid
builds. PR 1036 -
24 November 2022: Add "1m" timespan in Nextstrain profile builds. PR 1027
-
24 November 2022: calculate_delta_frequency: Allow script to work with fewer pivots available than requested with
--delta-pivots
. PR 1027 -
4 November 2022: Deploy individual builds to Nextstrain as soon as they are ready, as opposed to only once all builds are ready to speed up the feedback loop PR #1025
-
3 November 2022: Use weekly grouping for "2m" timespan in Nextstrain profile builds. PR 1023
-
2 November 2022: Make RBD levels filterable PR 1028
-
21 October 2022: Implement RBD-level coloring for BA.2 (21L) descendants. For background on this and lineage definitions please see Variant report 2022-10-17. PR 1018.
-
1 July 2022: Update workflow to support Nextclade v2 (PRs 963, 969). See the Nextclade changelog for more information.
-
1 June 2022: Add "2m" timespan in Nextstrain profile builds. PR 957
-
29 April 2022: Include multiple timespans in Nextstrain profile builds. PR 910
-
29 April 2022: Update default mask parameters to mask 200 bases from the end of the genome rather than the existing 50. This was necessary because there is a large deletion in this region in circulating 21L viruses. This deletion is causing problems with alignment and the resulting mis-alignment appears as excess mutations in the tree. PR 939.
-
27 April 2022: Include new clades 22A, 22B and 22C, where 22A corresponds to Pango lineage BA.4, 22B corresponds to Pango lineage BA.5 and 22C corresponds to Pango lineage BA.2.12.1. Please see PR 933 for rationale behind these clade updates.
-
27 April 2022: Convert to hierarchical clade definitions. This streamlines clade definitions significantly and makes it easier to understand clade relationships. Changes can be seen in
defaults/clades.tsv
and in PR 855. This feature requires Augur v14.0 or above. To upgrade Augur follow the installation guide at docs.nextstrain.org. -
12 April 2022: Add support for numbers in build names. PR 524
-
11 April 2022: Update clade definitions to be robust to presence of lineage BA.4 and BA.5 viruses. PR #913
-
17 March 2022: Add
Nextclade_pango
column to metadata PR 892 -
8 Mar 2022: Support disabling clock filters in the refine step by setting
clock_filter_iqd: 0
in therefine
section. PR #884, Issue #852. -
11 February 2022: Add colors to default Auspice config for Nextclade quality control columns and a filter for overall Nextclade QC status. PR #861.
-
3 February 2022: Run Nextclade QC and filtering on the final sample set before building a tree. Nextclade also runs
nextalign
under the hood. Importantly, this enables filtering the final sample set to omit strains with many reversions and/or possible contaminants, significantly improving the quality of Omicron trees. See the original pull request for more details. To disable this filtering by Nextclade quality control metrics, setskip_diagnostics: true
in thefilter
section of your build configuration file. -
29 January 2022: Update "mutational fitness" coloring based on latest results from Obermeyer et al model via github.com/broadinstitute/pyro-cov/.
-
26 January 2022: Template build descriptions in export for Auspice by substituting
${BUILD}
in the Markdown with the current build name.
-
5 January 2022: Move filter and diagnostic steps after subsampling. For workflows with subsampling that does not depend on priority calculations, these changes allow the workflow to start subsampling from the metadata, skipping sequence alignment of the full input sequences and only looping through these input sequences once per build when subsampled sequences are extracted. To skip the alignment step, define your input sequences with the
aligned
directive. If you use priority-based subsampling, define your input sequences with thesequences
directive. This reorganization of the workflow causes a breaking change in that the workflow no longer supports input-specific filtering with theexclude_where
,min_date
, andexclude_ambiguous_dates_by
parameters. The workflow continues to support input-specific filtering bymin_length
and skipping of diagnostic filters withskip_diagnostics
. PR #814. -
20 December 2021: Surface the crowding penalty parameter via the config file: PR #828, Issue #708. The crowding penalty, used when calculating
priority scores
during subsampling, decreases the number of identical samples that are included in the tree during random subsampling to provide a broader picture of the viral diversity in your dataset. However, you may wish to setcrowding_penalty = 0.0
(default value =0.1
) if you are interested in seeing as many samples as possible that are closely related to yourfocal
set. You can change this parameter viaconfig['priorities']['crowding_penalty']
. There is no change to default behavior. -
7 October 2021: Automatically exclude sequences whose dates are more than two weeks (this parameter can be adjusted) before the first known sequences for their corresponding clade: PR #740. To be extended to provide a tsv of all auto-excluded sequences and reasons for exclusion such as the reason addressed in the afformentioned PR, AKA
check_clade_dates
, and others checked in scripts/diagnostic.py. -
6 October 2021: Add three configuration parameters to control the metadata sanitizer step of the workflow. These parameters allow users to specify the metadata columns to use for strain names (
metadata_id_columns
) and to resolve duplicate records with database ids (database_id_columns
). The newerror_on_duplicate_strains
parameter allows users to ask the workflow to exit with an error when any duplicates appear in the metadata. See the configuration reference for more details. (#728) -
6 October 2021: Update clades with
21I (Delta)
and21J (Delta)
viruses. These are subclades within21A (Delta)
. Based on mutations they should have largely Delta-like phenotypes, although additional ORF1a mutations in21J (Delta)
appear to confer higher fitness.
-
6 October 2021: Remove travel exposure adjustment. This is a potentially breaking change if you had explicitly opted into this functionality (by default, it was disabled); in this case your snakefile will print an appropriate error and exit. Note that you can still define exposure metadata traits as colorings in your
auspice-config.json
, however be aware that these may not be curated in the future. See PR 723 for more. -
6 October 2021: Change how the internal (core) nextstrain profiles are run. We now split each (GISAID, open) into a preprocessing profile and a phylogenetic build pipeline. Please see PR 730 for more. There should be no changes to other profiles.
-
19 September 2021: Include "mutational fitness" coloring based on Obermeyer et al model. This annotates each node in the tree with a
mutational_fitness
trait by summing mutational effects from Obermeyer et al Supplementary Data S2. This should provide a mechanism to flag emergence of novel variants that may have higher fitness than circulating viruses.
- Annotate CDC-style epiweeks (e.g., "202019") as a color-by and filter option in Auspice JSONs (#703). This functionality requires the Python epiweeks package. You will need to update your software environment to include this package, depending on how you run your builds.
- If you use the Nextstrain CLI with Docker, update the Docker image with
nextstrain update
and then run your builds as usual withnextstrain build
. - If you use the Nextstrain CLI without Docker, run your builds with
nextstrain build . --use-conda <...other options...>
. - If you use Snakemake, run your builds with
snakemake --use-conda <...other options...>
. - If you manage your own Conda environment, install epiweeks manually in the environment with
conda install -c bioconda epiweeks
.
- If you use the Nextstrain CLI with Docker, update the Docker image with
- Update Conda environment to use Augur 13.0.0 for an improved filtering experience (#703).
-
11 August 2021: Add support for "Sequences" and "Patient status metadata" downloads from GISAID's search interface including documentation in the tutorial of how to use these data. (#701)
-
6 August 2021: We've replaced the mechanisms that support remote file inputs (e.g.
s3://
URLs) to improve internal workflow structure, extend support togs://
,http://
, andhttps://
URLs, and expand support for compressed inputs. Our remote file inputs documentation is updated to reflect the changes.This change should be backwards compatible and largely transparent to end users. The most visible change for anyone using remote file inputs is the local download location of the remote files: instead of being within the
results/
directory, dynamic directories based on the remote URL are now used. For example, the remotemetadata
inputhttps://data.nextstrain.org/files/ncov/open/metadata.tsv.gz
would be downloaded to the local pathdata.nextstrain.org/files/ncov/open/metadata.tsv.gz
; the remotesequences
inputs3://nextstrain-data/files/ncov/open/sequences.fasta.xz
would be downloaded tonextstrain-data/files/ncov/open/sequences.fasta.xz
. -
7 July 2021: Extensive changes to internally-used Nextstrain profiles. There should be no breaking changes to existing workflows outside of
./nextstrain_profiles/
. Please see PR #628 for full details. Briefly:- The (GISAID) profile has been renamed to
./nextstrain_profiles/nextstrain-gisaid
- A new "open" (GenBank) profile has been added
./nextstrain_profiles/nextstrain-open
- Intermediate open (GenBank) files, including sequences, & alignments are now publicly available for workflows to use as starting points. See the remote inputs documentation for details.
- The (GISAID) profile has been renamed to
-
3 July 2021: Allow optional prefixing of
hCoV-19/
to strain names when exporting Auspice JSON for visualization. This is specified via the config optioninclude_hcov19_prefix
. This is included in Nextstrain-maintained builds at the request of GISAID. -
27 June 2021: Update clade definitions with 21G (Lambda, C.37) emerging from Peru and 21H (B.1.621) emerging from Colombia.
-
22 June 2021: Add the ability to specify subsampling via a
priorities.tsv
file. To use, set thepriorities > type: file
and addpriorities > file: path/to/priorities.tsv
to your build'ssubsampling
schema.priorities.tsv
containsstrain name\tarbitrary numerical value
. Higher values = higher priority. (#664) -
18 June 2021: Change default behavior of frequency estimation to estimate frequencies starting 1 year prior to the current date. To override this default behavior, define a
min_date
in thefrequencies
section of the builds configuration. (#659)
For more details about this release, see the configuration reference for the new "sanitize metadata" parameters and the corresponding pull request.
- Deduplicate metadata and sequences from each
inputs
dataset at the beginning of the workflow.
- Support full GISAID metadata and sequences from the "Download packages" interface by converting this default format into Nextstrain-compatible metadata and sequences.
- Support reading metadata and sequences directly from GISAID's tar archives. For example, you can now define
inputs
asmetadata: data/ncov_north-america.tar.gz
andsequences: data/ncov_north-america.tar.gz
to decompress and read the corresponding data from the archive.
- 25 May 2021: Support custom Auspice JSON prefixes with a new configuration parameter,
auspice_json_prefix
. See the configuration reference for more details. (#643)
- Fix bug in precedence of input data such that duplicate sequence and metadata records are resolved by always preferring the record from the last
inputs
dataset. Thank you to @ttung for catching/patching this! If you have depended on the previous behavior where the sequence from firstinput
dataset was preferred, you will need to change the order of yourinputs
such that the preferred input appears last in the list. (#639).
- 19 May 2021: Compress metadata, sequence indices, and early intermediate sequences (aligned, masked, filtered, combined for subsampling, and subsampled files) to save disk space. (#636)
- 12 May 2021: Include S1 mutations and nextalign-based ancestral amino acid mutations in Auspice JSONs by default instead of requiring the now-unnecessary
use_nextalign
configuration parameter. (#630) - 12 May 2021: Document all available workflow configuration parameters. (#633)
See the corresponding pull request for more details about this release.
- Drop support for old sequence/metadata inputs. This change removes support for the
config["sequences"]
andconfig["metadata"]
starting points for the workflow in favor of the more flexibleconfig["inputs"]
format. - Use
nextalign
for alignment instead ofmafft
. This change completely removes support formafft
in favor ofnextalign
. Future versions may reinstatemafft
support as part ofaugur align
updates.
- Drop unused haplotype status rule and script
- Remove unused nucleotide mutation frequencies rule
- Use
augur distance
for mutation counts instead of a custom script in the ncov repository. Recent improvements toaugur distance
in v12.0.0 enable this change by properly accounting for insertion/deletion events.
See the corresponding pull request for more details about changes in this release.
- Change the default build name from "global" to "default-build" and use a default subsampling scheme that selects all input sequences
- Warn about duplicate sequences found when merging sequences from multiple inputs instead of throwing an error (set
combine_sequences_for_subsampling: warn_about_duplicates: false
in your configuration file to revert this behavior)
- Define a new subsampling scheme named
all
that selects all input sequences - Add a new top-level configuration parameter
default_build_name
to allow overriding new default name of "default-build" - Support compressed sequence inputs for alignment with mafft and nextalign (requires mafft upgrade)
- Sanitize strain names in sequences and metadata from different sources (e.g.,
hCoV-19/
from GISAID orSARS-CoV-2/
from GenBank, etc.)
-
20 April 2021: Surface emerging lineage as a colorby. This replaces the rather stale color by "Emerging Clade" with a new color by "Emerging Lineage". This focuses on PANGO lineages that are of interest triangulated by CoVariants, PANGO international lineage reports, CDC VUIs and VOCs and PHE VUIs and VOCs. The intention is for the listing at
emerging_lineages.tsv
to be updated frequently with new lineages added and no longer interesting lineages dropped. #609 -
12 April 2021: Calculate current clade frequency and logistic growth rate across nodes in the phylogeny. This produces a new
logistic_growth.json
file and uses this file to add a coloring the final Auspice JSON. Implementation choices are discussed in PR #595. -
12 April 2021: Annotate Pangolin lineages per build in a
pangolineages.json
file and final Auspice JSON by addingrun_pangolin: true
to the top-level workflow config (builds.yaml
). Note: this annotation only works when running the workflow with Snakemake's--use-conda
flag or if your environment has Pangolin installed. #593
- Use Augur 11.2.0's metadata-only output arguments to aggregate subsampled sequences and metadata #592
- Use Augur 11.3.0's
io.py
module to combine and deduplicate uncompressed or compressed sequences when handling multiple input datasets #592
This release reflects the state of the workflow when we instituted our workflow versioning system.
In order to make our repository more accessible for first-time users, and those who want to create their own customized build, we made a number of changes in July 2020. Here, we outline those changes, and also list 'breaking changes' that may effect advanced users who were already running their own builds.
You can check the lists below to see if there's any action you could take to make updating to the latest version of this repository is smooth!
The goal of this release is to make it easier for new users to get their own ncov
build up and running. This consists of a new, extensive tutorial hosted on github pages; a simplified repository structure; and more didactic file names.
Summary of breaking changes:
- All nextstrain-specific files now live under
nextstrain_profiles
config
is now nameddefaults
envs
,rules
andschemas
now live underworkflow
- README is updated
- Adds in-depth tutorial to
docs/
and accompanying github pages setup files data/
now contains example data that should remain packaged with the repositorynarratives/
now contains only atemplate_narrative.md
for new users (not to worry -- all finished Situation Reports are still hosted over in thenextstrain/narratives
repo)my_profiles
now contains extensiveexample
(formerlyking-county
) andexample_advanced_customization
(formerlyswiss
) profiles
- The main
config.yaml
file is now more precisely labeled asparameters.yaml
reference.gb
>reference_seq.gb
ordering.tsv
>color_ordering.tsv
config
>defaults
, with nextstrain-specific files (e.g.,description.md
) moved tonextstrain_profiles/nextstrain/
- nextstrain-specific profiles labeled with
nextstrain_*
To improve repo clarity and approachability for new users, the following files have been reorganized.
- Workflow-related files now live in a
workflow
directory, rather than the top levelenvs
>workflow/envs
schemas
>workflow/schemas
rules
>workflow/snakemake_rules
- Nextstrain-specific profiles now live under
nextstrain_profiles
(Reiterated from last section because they're important :)
config
is nowdefaults
, with nextstrain-specific files (e.g.,description.md
) moved tonextstrain_profiles/nextstrain/
config.yaml
is nowparameters.yaml
If you've got custom builds running and regularly pull from the repository, you should check here to see if any of the changes you've made might make the merge harder. Usually, just copying and renaming folders and/or files is enough to avoid too many merge conflicts!
First, you should check the file locations that have changed, above. If you reference any of these files specifically in your pipelines or profile, be sure to update those links!
Be sure to also check any links to files that were previously in profiles
.
For example, if you were referencing the cluster information in profiles/nextstrain-scicore/cluster.json
for example) - we've now got two profiles folders - you'd find nextstrain-scicore
in the nextstrain_profiles
folder now.
If you modified the swiss
, default
, or king-county
profiles, this may cause a merge conflict, as these folders have been renamed.
To keep your builds as they are, we recommend copying these folders, and then after the merge, restoring the name you prefer.
We now have a data
folder which comes with the repository and contains example build data.
If you had previously created a data
folder, this may cause a merge conflict - usually this can be easily resolved.
For those who help run and maintain the Nextstrain.org builds, there's a few changes that might be different from what you're used to.
Just focusing on the files mostly accessed by the 'build shepherds,' here's what's good to know:
- The
config
folder is nowdefaults
orderings.tsv
is nowcolor_orderings.tsv
rules/nextstrain_exports.smk
(the rules that do the 'finalizing' of the builds) isnowworkflow/snakemake_rules/export_for_nextstrain.smk
The 'finishing builds' commands are also slightly different because the profiles have moved - they'll look familiar though!
You can already find these changed commands in the export_for_nextstrain.smk
file, but here they are as well:
# To update ordering/lat_longs after AWS download:
# snakemake --touch --forceall --profile nextstrain_profiles/nextstrain
# snakemake --profile nextstrain_profiles/nextstrain clean_export_regions
# snakemake --profile nextstrain_profiles/nextstrain export_all_regions
# When done adjusting lat-longs & orders, remember to run
# snakemake --profile nextstrain_profiles/nextstrain all_regions
# to produce the final Auspice files!