GithubHelp home page GithubHelp logo

elbecerrasoto / variants Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 400 KB

Variant Calling Snakemake Pipeline

License: MIT License

Makefile 6.04% Python 93.96%
bioinformatics bioinformatics-pipeline variant-calling snakemake snakemake-workflow

variants's Introduction

Variants

v0.2.0

Description

Variant Calling snakemake pipeline used at DeMoraes Lab.

It downloads a bacterial reference genome, and uses bowtie2, samtools and varscan to call variants.

Quick Usage

Style 1: using config/config.yaml

Edit config/config.yaml and then run.

snakemake --use-conda --cores all

Style 2: command line arguments

Specify configuration directly on the command line.

snakemake --cores all --use-conda --config\
    reference_id=GCA_013166975.1\
    input=input.tsv\
    results=results/

Generate report

snakemake --report report.zip

Inputs

The input is a tsv file with no headers and the following columns:

  1. Sample name
  2. Forward reads paths
  3. Reverse reads paths

A script is provided to generate this file, to run it.

scripts/generate_input.py --mark1 _R1 --mark2 _R2 tests/data/

The generated file can then be manually edited, for further customization.

Outputs

The main output is a tsv of the variants, one file per sample.

Prerequisites

Installation

git clone 'https://github.com/elbecerrasoto/variants'
cd variants
mamba env create
mamba activate variants

To test the installation.

make test

Usage

The pipeline uses the snakemake conventions, so you can edit the config file at config/config.yaml, and then run:

  • snakemake --cores all --use-conda

TODO for v0.2.0

  • Use "all" for bowtie cores
  • Update readme
  • Simplify config
  • Simplify input files
  • Log generation
  • Script for suggesting input

TODO for future releases

  • Workflow catalog standards

Issues

bowtie2 uses libcrypt.so.1 you can install it on manjaro like this:

  • sudo pacman -S core/libxcrypt-compat

variants's People

Contributors

elbecerrasoto avatar

Stargazers

 avatar

Watchers

 avatar

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.