Giter VIP home page Giter VIP logo

covid-spike-classification's Introduction

Detect interesting SARS-CoV-2 spike protein mutations from Sanger sequencing data

install with bioconda Docker Cloud Build Status

covid-spike-classification is a script to call interesting SARS-CoV-2 spike protein mutations from Sanger sequencing to support the Danish COVID-19 monitoring efforts.

Using Sanger-sequenced RT-PCR product of the spike protein, this tool should pick up all relevant mutations currently tracked (see covid_spike_classification/core.py for the full list of tracked mutations) and give a table with one row per sample and a yes/no/failed column per tracked mutation.

This workflow is built and maintained at https://github.com/kblin/covid-spike-classification

If you found this tool useful, please cite https://www.medrxiv.org/content/10.1101/2021.03.27.21252266v1

Installation

covid-spike-classification is distributed via this git repository, pypi or bioconda.

Bioconda

Installing via bioconda is the fastest way to get up and running:

conda create -n csc -c conda-forge -c bioconda covid-spike-classification
conda activate csc

git & pypi

When installing via git or pypi, you first need to install the external binary dependencies.

covid-spike-classification depends on three excellent tools to do most of the work:

  • tracy (versions 0.5.3 & 0.5.7 tested)
  • bowtie2 (version 2.4.2 tested)
  • samtools (versions 1.10 & 1.11 tested)

If you have conda installed, the easiest way to get started is to just install these via calling

git clone https://github.com/kblin/covid-spike-classification.git
cd covid-spike-classification
conda env create -n csc -f environment.yml
conda activate csc
pip install .

Docker, Podman, Singularity

While not technically an installation method, covid-spike-classification is also shipped as an OCI container. To use it, you ideally run the container from a workflow management system like Snakemake or Nextflow that will take care of mounting filesystems into the container for you.

The OCI container image is available from the Docker Hub kblin/covid-spike-classification repository.

Setup

You also need to generate the samtools and bowtie2 indices for your reference genome. We ship a copy of NC_045512 and a script to generate these indices:

conda activate csc
cd ref
./build_indices.sh
cd ..

Usage

Assuming you used above instructions to install via conda, you can run the tool like this:

conda activate csc
covid-spike-classification --reference /path/to/your/reference.fasta --outdir /path/to/result/dir /path/to/sanger/reads/dir_or.zip

Notably, you can provide the input either as a ZIP file or as a directory, as long as they directly contain the ab1 files you want to run the analysis on.

See also the --help output for more detailed usage information.

License

All code is available under the Apache License version 2, see the LICENSE file for details.

covid-spike-classification's People

Contributors

cmkobel avatar jeppe-dev avatar kblin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

covid-spike-classification's Issues

Primer Sequences

Thank you for an awesome tool. Works fantastically (using the docker container)!

Are the primer sequences that are being used publicly available? I'm currently using Thermofisher primers which cover a slightly smaller area.

Error when setting up

Hi, We want to follow the setup and create the index file for NC_045512.fasta but we got this error message. Please help. Thank you very much.

$ ./build_indices.sh
/home/gilman_siu2/anaconda3/envs/csc/bin/bowtie2-build-s: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory

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.