Change Logļ
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.
New features since last version updateļ
v14 (23 October 2024)ļ
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
alignto produce the insertions and translations outputs, so they have been removed. Thebuild_alignrule no longer produces a separateinsertions.tsvsince insertions are now included in thenextclade_qc.tsv. PR 11602 October 2024: Include a new parameter for
clade_recencyundercolors. This parameter is used to define which clades should receive a color from the standard rainbow palette. A value of6Mwill 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_recencyparameter is used inbuilds.yamlinnextstrain_profilesto color clades according for the1m,2m,6mandall-timetimepoints. Ifclade_recencyis not supplied then all clades will be colored. PR 113230 September 2024: Use population-based weighted sampling for
nextstrain_profiles. This requires a minimum Augur version of 25.3.0. PRs 1106, 1150, 115131 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
nextclade2binary that makes the version explicit PR 108917 June 2023: Update subsampling strategy for
nextstrain_profilesto 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
v13 (16 May 2023)ļ
16 May 2023: Update workflow to support Augur v22 which updates the
augur cladesinterface 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-21Lwill use the BA.2 (Nextstrain 21L) dataset that provides immune escape and ACE2 binding scores. See the workflow configuration guide for more details. PR 104630 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 escapeandace2_bindingfrom metadata as colorings fornextstrain-openandnextstrain-gisaidbuilds. PR 103624 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 10274 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.
v12 (12 July 2022)ļ
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.tsvand 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_pangocolumn to metadata PR 8928 Mar 2022: Support disabling clock filters in the refine step by setting
clock_filter_iqd: 0in therefinesection. 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.
v11 (3 February 2022)ļ
3 February 2022: Run Nextclade QC and filtering on the final sample set before building a tree. Nextclade also runs
nextalignunder 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: truein thefiltersection 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.
v10 (5 January 2022)ļ
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
aligneddirective. If you use priority-based subsampling, define your input sequences with thesequencesdirective. 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_byparameters. The workflow continues to support input-specific filtering bymin_lengthand 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 scoresduring 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 yourfocalset. 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_strainsparameter 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.
v9 (6 October 2021)ļ
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_fitnesstrait 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.
v8 (19 Aug 2021)ļ
Major changesļ
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 updateand 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.
Featuresļ
Update Conda environment to use Augur 13.0.0 for an improved filtering experience (#703).
New features since last version updateļ
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 remotemetadatainputhttps://data.nextstrain.org/files/ncov/open/metadata.tsv.gzwould be downloaded to the local pathdata.nextstrain.org/files/ncov/open/metadata.tsv.gz; the remotesequencesinputs3://nextstrain-data/files/ncov/open/sequences.fasta.xzwould 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-gisaidA new āopenā (GenBank) profile has been added
./nextstrain_profiles/nextstrain-openIntermediate open (GenBank) files, including sequences, & alignments are now publicly available for workflows to use as starting points. See the remote inputs documentation for details.
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.tsvfile. To use, set thepriorities > type: fileand addpriorities > file: path/to/priorities.tsvto your buildāssubsamplingschema.priorities.tsvcontainsstrain 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_datein thefrequenciessection of the builds configuration. (#659)
v7 (27 May 2021)ļ
For more details about this release, see the configuration reference for the new āsanitize metadataā parameters and the corresponding pull request.
Major changesļ
Deduplicate metadata and sequences from each
inputsdataset at the beginning of the workflow.
Featuresļ
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
inputsasmetadata: data/ncov_north-america.tar.gzandsequences: data/ncov_north-america.tar.gzto decompress and read the corresponding data from the archive.
New features since last version updateļ
25 May 2021: Support custom Auspice JSON prefixes with a new configuration parameter,
auspice_json_prefix. See the configuration reference for more details. (#643)
v6 (20 May 2021)ļ
Major changesļ
Fix bug in precedence of input data such that duplicate sequence and metadata records are resolved by always preferring the record from the last
inputsdataset. Thank you to @ttung for catching/patching this! If you have depended on the previous behavior where the sequence from firstinputdataset was preferred, you will need to change the order of yourinputssuch that the preferred input appears last in the list. (#639).
New features since last version updateļ
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_nextalignconfiguration parameter. (#630)12 May 2021: Document all available workflow configuration parameters. (#633)
v5 (7 May 2021)ļ
See the corresponding pull request for more details about this release.
Major changesļ
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
nextalignfor alignment instead ofmafft. This change completely removes support formafftin favor ofnextalign. Future versions may reinstatemafftsupport as part ofaugur alignupdates.
Minor changesļ
Drop unused haplotype status rule and script
Remove unused nucleotide mutation frequencies rule
Use
augur distancefor mutation counts instead of a custom script in the ncov repository. Recent improvements toaugur distancein v12.0.0 enable this change by properly accounting for insertion/deletion events.
v4 (5 May 2021)ļ
See the corresponding pull request for more details about changes in this release.
Major changesļ
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: falsein your configuration file to revert this behavior)
Featuresļ
Define a new subsampling scheme named
allthat selects all input sequencesAdd a new top-level configuration parameter
default_build_nameto 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.)
New features since last version updateļ
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.tsvto be updated frequently with new lineages added and no longer interesting lineages dropped. #60912 April 2021: Calculate current clade frequency and logistic growth rate across nodes in the phylogeny. This produces a new
logistic_growth.jsonfile 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.jsonfile and final Auspice JSON by addingrun_pangolin: trueto the top-level workflow config (builds.yaml). Note: this annotation only works when running the workflow with Snakemakeās--use-condaflag or if your environment has Pangolin installed. #593
v3 (12 April 2021)ļ
v2 (9 April 2021)ļ
This release reflects the state of the workflow when we instituted our workflow versioning system.
July 2020 Updateļ
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!
Summary of changesļ
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_profilesconfigis now nameddefaultsenvs,rulesandschemasnow live underworkflow
Additions and updatesļ
README is updated
Adds in-depth tutorial to
docs/and accompanying github pages setup filesdata/now contains example data that should remain packaged with the repositorynarratives/now contains only atemplate_narrative.mdfor new users (not to worry ā all finished Situation Reports are still hosted over in thenextstrain/narrativesrepo)my_profilesnow contains extensiveexample(formerlyking-county) andexample_advanced_customization(formerlyswiss) profiles
File name changesļ
The main
config.yamlfile is now more precisely labeled asparameters.yamlreference.gb>reference_seq.gbordering.tsv>color_ordering.tsvconfig>defaults, with nextstrain-specific files (e.g.,description.md) moved tonextstrain_profiles/nextstrain/nextstrain-specific profiles labeled with
nextstrain_*
Structural changesļ
To improve repo clarity and approachability for new users, the following files have been reorganized.
Workflow-related files now live in a
workflowdirectory, rather than the top levelenvs>workflow/envsschemas>workflow/schemasrules>workflow/snakemake_rules
Nextstrain-specific profiles now live under
nextstrain_profiles
(Reiterated from last section because theyāre important :)
configis nowdefaults, with nextstrain-specific files (e.g.,description.md) moved tonextstrain_profiles/nextstrain/config.yamlis nowparameters.yaml
Breaking Changesļ
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.
Developer Changesļ
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
configfolder is nowdefaultsorderings.tsvis nowcolor_orderings.tsvrules/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!