Code Monkey home page Code Monkey logo

ncov-africa's Introduction

Example SARS-CoV-2 build for countries in Africa

This repository includes an example configuration file for running a Nextstrain analysis of SARS-CoV-2 genomes from GISAID for a specific country (South Africa).

Fork this repository

Select the "Fork" button in the top right of this repository's GitHub page. This will make a copy of the repository in your personal or organizational GitHub account that you can edit. Working from this forked copy, follow the instructions below to make your own country-focused Nextstrain analysis of SARS-CoV-2.

Setup your environment

Setup the Nextstrain software environment and download the ncov workflow. For example, to download the workflow you can run the following command.

git clone https://github.com/nextstrain/ncov.git

Curate data from GISAID

Select data from GISAID for your country and for phylogenetic context. Download these data files into your ncov/data/ directory. For this analysis, we will use recent data from South Africa and the recent "nextregions" download for Africa.

Configure the analysis

Download this repository into the parent directory of the ncov workflow. If you've forked this repository, replace blab with your username or organization.

git clone https://github.com/blab/ncov-africa.git

Change directories to the ncov workflow.

cd ncov/

Edit the workflow configuration for your country, as needed. For example, change instances of "south-africa" and "South Africa" to your country of interest. Update the list of inputs to match the data you curated from GISAID.

open ../ncov-africa/builds.yaml

Edit the Auspice configuration, setting the build_url and maintainers, as needed.

open ../ncov-africa/auspice_config.json

Review the analysis

Dry-run the workflow (print commands without running anything).

nextstrain build . -j 4 -n -p --configfile ../ncov-africa/builds.yaml

Create a graph of the workflow.

nextstrain build . --configfile ../ncov-africa/builds.yaml --dag | dot -Tpdf > dag.pdf

View a graph of the workflow.

open dag.pdf

Run the analysis

Run the workflow.

nextstrain build . -j 4 -p --configfile ../ncov-africa/builds.yaml

Inspect the analysis

View the resulting tree locally with Auspice.

nextstrain view auspice/

Open the local Auspice server at http://localhost:4000/.

Save your analysis

Copy the Auspice tree files from the workflow directory into your GitHub repository.

cp auspice/* ../ncov-africa/auspice/

Change directories to your GitHub repository.

cd ../ncov-africa

Add the new Auspice JSONs to the repository and commit them.

git add auspice/*
git commit -m "Add Auspice JSONs for my country's build"

Push your changes to GitHub to make them public.

git push origin main

View your analysis through Nextstrain

View the tree from this analysis through Nextstrain's community interface. You can view trees hosted on GitHub with a URL like https://nextstrain.org/community/blab/ncov-africa@main/south-africa where blab is your GitHub username or organization, ncov-africa is the repository, main is the branch, and south-africa corresponds to a file in the repository named ncov-africa_south-africa.json.

Learn more

See the Nextstrain SARS-CoV-2 tutorial for more details about the workflow and see the Nextstrain documentation for more about the tools behind the workflow.

If you have questions, let us know on the Nextstrain discussion site and we'll do our best to help.

ncov-africa's People

Contributors

huddlej avatar

Watchers

 avatar  avatar  avatar  avatar

ncov-africa's Issues

Error running on M1 chip

Dear NS Team,

Please assist with this error,

$ nextstrain build . -j 4 -n -p --configfile ../ncov-africa/builds.yaml
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Error: no Snakefile found, tried Snakefile, snakefile, workflow/Snakefile, workflow/snakefile.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.