mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
add bwa index
This commit is contained in:
parent
a88b867498
commit
1f46499e3b
4 changed files with 59 additions and 0 deletions
16
tools/bwa/index/main.nf
Normal file
16
tools/bwa/index/main.nf
Normal 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
25
tools/bwa/index/meta.yml
Normal 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
|
16
tools/bwa/index/test/main.nf
Normal file
16
tools/bwa/index/test/main.nf
Normal 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()
|
||||
}
|
2
tools/bwa/index/test/nextflow.config
Normal file
2
tools/bwa/index/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue