Coder Social home page Coder Social logo

call-variants's Introduction

Call Variants Pipeline

This pipeline takes a directory containing paired-end illumina sequence data, plus a reference sequence, aligns the reads against the reference and calls variants. It is based directly off of the excellent Snippy by Torsten Seemann (@tseemann).

Usage

nextflow run BCCDC-PHL/call-variants \
  --ref <ref.fa> \
  --gff <genes.gff> \
  --fastq_input </path/to/fastq> \
  --outdir <outdir>

call-variants's People

Contributors

dfornika avatar

Watchers

 avatar  avatar

call-variants's Issues

Task CPUs missing

the cpus directive was not included in this process:

bwa mem -t ${task.cpus} -Y -M -R "${rg_string}" ${ref_data}/ref/sequences.fa ${reads} | \
samclip --max ${params.maxsoft} --ref ${ref_data}/ref/sequences.fa.fai | \
samtools sort -@ ${task.cpus} -n -l 0 | \
samtools fixmate -@ ${task.cpus} -m - - | \
samtools sort -@ ${task.cpus} -l 0 | \
samtools markdup -@ ${task.cpus} -r - - \

Also, be careful that when you chain processes like this is that they stream to each other so they will each be running in parallel with X CPUs, so you should make sure that if you ask for X, that you aren't using N times X because of all the processes. An easy way is to split the CPUs requested equally to each of the processes in the chain.

Moving away from snpEff

We are looking into bcftools csq instea:

process annotate_variants {
tag { sample_id }
publishDir "${params.outdir}/${sample_id}", mode: 'copy', pattern: "${sample_id}.vcf"
input:
tuple val(sample_id), path(filtered_vcf), val(ref_id), path(ref_data), path(snpeff_config)
output:
tuple val(sample_id), path("${sample_id}.vcf")
script:
"""
snpEff ann -noLog -noStats -no-downstream -no-upstream -no-utr \
-c ${snpeff_config} -dataDir ${ref_data} ref ${filtered_vcf} > ${sample_id}.vcf
"""
}

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.