Coder Social home page Coder Social logo

bovtb-nf's Introduction

BovTB-nf


This is the updated pipeline for APHA's processing of Mycobacterium bovis WGS data. BovTB-nf is designed to process a batch (1 or more samples) of paired-end fastq files generated on an Illumina sequencer. It will first remove duplicate reads from the dataset (FastUniq) and then trim the unique reads based on base-call quality and the presence of adapters (Trimmomatic). Reads are then mapped to the M. bovis AF2122 reference genome and variants called (bwa/samtools/bcftools).

It has been built to run using nextflow, using standard bioinformatic tools for the most part. The external dependancies are:

  • FastUniq
  • Trimmomatic
  • bwa
  • samtools and bcftools
  • bedtools
  • Kraken2 (and database)
  • Bracken

Installation

Of course Nextflow itself is a prerequisite and should be installed as described in the Nextflow Documentation

If you have the dependancies installed the pipeline can run by simply typing:

nextflow run ellisrichardj/BovTB-nf

Alternatively, clone the repository:

git clone https://github.com/ellisrichardj/BovTB-nf.git

If required, there is simple script for installing the dependancies (helpfully called Install_dependancies.sh), which will also update the nextflow config file with their locations.

Docker build

Alternatively, the pipeline can run in an ubuntu image on docker. To build the image: docker build /PATH/TO/REPO/ -t bov-tb

Run a docker container in bash: docker run --rm -it bov-tb


Examples

In its simplest form just run the Nextflow process from the directory containing the fastq files:

cd /path/to/Data
nextflow run BovTB-nf

bovtb-nf's People

Contributors

afishman avatar ellisrichardj avatar mattoelgato avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

bovtb-nf's Issues

Error in SNPfiltAnnot process

Updated reference genbank file leads to error in SNPfiltAnnot process:
AttributeError: 'CompoundLocation' object has no attribute '_start'

Genotype inference

This part of the process needs work, both on the nextflow pipeline and the underlying python script to run correctly

Python script read stdin

The python script for snp filtering needs to be changed to accept stdin, so that the uncompressed vcf can be piped in rather than written to disk

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.