add bwa index

This commit is contained in:
MaxUlysse 2020-01-21 11:24:32 +01:00
parent a88b867498
commit 1f46499e3b
4 changed files with 59 additions and 0 deletions

16
tools/bwa/index/main.nf Normal file
View file

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

25
tools/bwa/index/meta.yml Normal file
View file

@ -0,0 +1,25 @@
name: bwa index
description: create indexes for BWA from a fasta file
keywords:
- index
tools:
- bwa:
description: |
BWA is a software package for mapping DNA sequences against a large reference genome, such as the human genome.
homepage: http://bio-bwa.sourceforge.net/
documentation: hhttp://www.htslib.org/doc/samtools.html
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'