Skip to content

neherlab/gisaid_nextstrain

Repository files navigation

Nextstrain for GISAID downloads

This is a simple nextstrain pipeline for seasonal influenza virus data sets download from GISAID. It is derived from the main nextstrain seasonal flu analysis workflow available at nextstrain/seasonal-flu.

To install nextstrain, you need a linux-like environment (for example Windows Subsystem for Linux, MacOS, or Linux) and execute the script install_conda.sh:

# This script installs miniconda and augur. It can be run without
# administrator privileges. It has the following prerequisites
#  - curl
#  - gcc
# You need to install these via your package manager (e.g. apt-get)
# In case of macOS, you will need to install the developer tools

# get miniconda for linux (use for WSL and Linux, for MacOS, comment out this line and use the line below)
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o conda_installer.sh

## use the following line for macOS
#curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o conda_installer.sh


# install miniconda -- accepting defaults should be fine
bash conda_installer.sh

## install nextstrain
curl http://data.nextstrain.org/nextstrain.yml --compressed -o nextstrain.yml
conda env create -f nextstrain.yml

These commands install miniconda and create an environment in which you can run nextstrain. Running these commands will prompt you to accept terms of conditions and specify the location of the installation -- the default answers are fine here. The conda installer will also ask you whether you want to set-up the conda installation -- choose yes.

Next, we need to install the visualization component. Open a new terminal and type

conda activate nextstrain
npm install --global auspice

These commands are also provided as a script install_auspice.sh.

Once this is done, you can download this repository and run a test analysis using the following commands (provided as test_installation.sh).

# get the influenza/gisaid repository
git clone https://github.com/neherlab/gisaid_nextstrain

cd gisaid_nextstrain
mkdir data && cp example_data/*fasta data
conda activate nextstrain
snakemake auspice/h3n2_ha_tree.json
auspice view

This will run for a few minutes. Once it completed, you should be able view an analysis in your browser at http://localhost:4000/h3n2_ha

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published