mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-31 11:42:12 -05:00
Copy across test data and docs for bwa mem
This commit is contained in:
parent
da4dcee934
commit
fb697eca2f
3 changed files with 57 additions and 0 deletions
42
software/bwa/mem/meta.yml
Normal file
42
software/bwa/mem/meta.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
name: bwa mem
|
||||||
|
description: Performs fastq alignment to a fasta reference using the burrows-wheeler aligner
|
||||||
|
keywords:
|
||||||
|
- mem
|
||||||
|
- bwa
|
||||||
|
- alignment
|
||||||
|
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: http://www.htslib.org/doc/samtools.html
|
||||||
|
arxiv: arXiv:1303.3997
|
||||||
|
input:
|
||||||
|
-
|
||||||
|
- id:
|
||||||
|
type: val
|
||||||
|
description: read/read pair id
|
||||||
|
- reads:
|
||||||
|
type: file
|
||||||
|
description: Input fastq file
|
||||||
|
pattern: "*.{fastq,fq}"
|
||||||
|
- index:
|
||||||
|
type: file
|
||||||
|
description: bwa indexes file
|
||||||
|
pattern: "*.{amb,ann,bwt,pac,sa}"
|
||||||
|
- prefix:
|
||||||
|
type: val
|
||||||
|
description: bwa index prefix, equivalent to index file names without extensions. Usually the reference genome file name unless otherwise specified.
|
||||||
|
output:
|
||||||
|
-
|
||||||
|
- bam:
|
||||||
|
type: file
|
||||||
|
description: Output bam file
|
||||||
|
pattern: "*.bam"
|
||||||
|
- bamindex:
|
||||||
|
type: file
|
||||||
|
description: Output bam index file
|
||||||
|
pattern: "*.bai"
|
||||||
|
|
||||||
|
authors:
|
||||||
|
- "@jeremy1805"
|
13
software/bwa/mem/test/main.nf
Normal file
13
software/bwa/mem/test/main.nf
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env nextflow
|
||||||
|
nextflow.preview.dsl = 2
|
||||||
|
include '../../../../tests/functions/check_process_outputs.nf' params(params)
|
||||||
|
include '../main.nf' params(params)
|
||||||
|
|
||||||
|
reads = '../../../../test-datasets/tools/bwa/mem/reads/*_R{1,2}_001.fastq.gz'
|
||||||
|
index = '../../../../test-datasets/tools/bwa/mem/index/H3N2.{amb,ann,bwt,pac,sa}'
|
||||||
|
prefix = 'H3N2'
|
||||||
|
|
||||||
|
workflow {
|
||||||
|
read_input=Channel.fromFilePairs(reads)
|
||||||
|
bwa_mem(read_input,file(index),prefix)
|
||||||
|
}
|
2
software/bwa/mem/test/nextflow.config
Normal file
2
software/bwa/mem/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
docker.enabled = true
|
||||||
|
params.outdir = './results'
|
Loading…
Reference in a new issue