add modules for bwa-mem2

This commit is contained in:
MaxUlysse 2020-07-14 17:10:23 +02:00
parent 7fbfd2d6cb
commit 1223614e15
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,16 @@
process bwa-mem2_index {
tag {fasta}
container 'quay.io/biocontainers/bwa-mem2:2.0--he513fc3_0'
input:
path(fasta)
output:
path("${fasta}.*")
script:
"""
bwa-mem2 index ${fasta}
"""
}

View file

@ -0,0 +1,26 @@
name: bwa-mem2 index
description: create indexes for BWA from a fasta file
keywords:
- index
tools:
- bwa:
description: |
Bwa-mem2 is the next version of the bwa-mem algorithm in bwa.
It produces alignment identical to bwa and is ~1.3-3.1x faster depending on the use-case, dataset and the running machine.
homepage: https://github.com/bwa-mem2/bwa-mem2
documentation: https://github.com/bwa-mem2/bwa-mem2
arxiv: arXiv:1303.3997
input:
-
- input:
type: file
description: Input fasta file
pattern: *.{fasta,fa}
output:
-
- index:
type: file
description: bwa indexes file
pattern: *.{fasta,fa}.{amb,ann,bwt,pac,sa}
authors:
- @maxulysse

View file

@ -0,0 +1,16 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../main.nf' params(params)
// Define input channels
input = '../../../test-datasets/tools/bwa/index/input/reference.fasta'
Channel
.from(input)
.set { ch_input }
// Run the workflow
workflow {
fastqc(ch_input)
// .check_output()
}

View file

@ -0,0 +1,2 @@
docker.enabled = true
params.outdir = './results'