=============================== Running a phylogenetic workflow =============================== This tutorial uses the :term:`Nextstrain CLI` to help you get started running :term:`phylogenetic workflows` and viewing the :term:`datasets` you see on `nextstrain.org `_. It assumes you are comfortable using the command line and installing software on your computer. If you need help when following this tutorial, please create a post at `discussion.nextstrain.org `_. In this tutorial, you will run our `example Zika workflow `_ and view the results on your computer. You will have a basic understanding of how to run workflows for other pathogens and a foundation for understanding the Nextstrain ecosystem in more depth. .. contents:: Table of Contents :local: Prerequisites ============= 1. :doc:`Install Nextstrain `. These instructions will install all of the software you need to complete this tutorial and others. Download the example Zika pathogen repository ============================================= :term:`Pathogen workflows` are stored in :term:`pathogen repositories` (version-controlled folders) to track changes over time. Download the `example Zika pathogen repository `_. .. code-block:: console $ git clone https://github.com/nextstrain/zika-tutorial Cloning into 'zika-tutorial'... [...more output...] When it's done, you'll have a new directory called ``zika-tutorial/``. Run the workflow ================ :term:`Phylogenetic workflows` use the :term:`Augur` bioinformatics toolkit to subsample data, align sequences, build a phylogeny, estimate phylogeographic patterns, and save the results in a format suitable for visualization with :term:`Auspice`. Run the workflow with the :term:`Nextstrain CLI`. .. code-block:: console $ nextstrain build --cpus 1 zika-tutorial/ Building DAG of jobs... [...a lot of output...] This should take just a few minutes to complete. To save time, this tutorial uses example data which is much smaller than `our live Zika analysis `_. Output files will be in the directories ``zika-tutorial/data/``, ``zika-tutorial/results/`` and ``zika-tutorial/auspice/``. Visualize results ================= View the resulting :term:`phylogenetic dataset` using Nextstrain's visualizations. .. code-block:: console $ nextstrain view zika-tutorial/auspice/ —————————————————————————————————————————————————————————————————————————————— The following datasets should be available in a moment: • http://127.0.0.1:4000/zika —————————————————————————————————————————————————————————————————————————————— [...more output...] Open the `dataset URL `_ in your web browser. .. image :: ../images/zika_example.png :alt: Screenshot of Zika example dataset viewed in Nextstrain Next steps ========== * :doc:`Learn how to interpret Nextstrain's visualizations `. * :doc:`Learn how to create the workflow in this tutorial `. * Learn more about the CLI by running ``nextstrain --help`` and ``nextstrain --help``. * Explore the :term:`Nextstrain runtime` by running ad-hoc commands inside it using ``nextstrain shell zika-tutorial/``.