mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-18 02:46:13 -05:00
apply suggestions from review
thanks @drpatelh
This commit is contained in:
parent
a963c67481
commit
c67e591caf
4 changed files with 11 additions and 12 deletions
|
@ -31,11 +31,13 @@ process BWAMETH_ALIGN {
|
|||
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
||||
def read_group = meta.read_group ? "-R ${meta.read_group}" : ""
|
||||
"""
|
||||
INDEX=`find -L ./ -name "*bwameth.c2t" | sed 's/.bwameth.c2t//'`
|
||||
|
||||
bwameth.py \\
|
||||
$options.args \\
|
||||
$read_group \\
|
||||
-t $task.cpus \\
|
||||
--reference ${index}/genome.fa \\
|
||||
--reference \$INDEX \\
|
||||
$reads \\
|
||||
| samtools view $options.args2 -@ $task.cpus -bhS -o ${prefix}.bam -
|
||||
|
||||
|
|
|
@ -54,9 +54,6 @@ input:
|
|||
- index:
|
||||
type: dir
|
||||
description: Directory containing bwameth genome index
|
||||
- fasta:
|
||||
type: file
|
||||
description: Input genome fasta file
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
|
|
|
@ -19,10 +19,10 @@ process BWAMETH_INDEX {
|
|||
}
|
||||
|
||||
input:
|
||||
path fasta, stageAs: "index/genome.fa"
|
||||
path fasta, stageAs: "bwameth/*"
|
||||
|
||||
output:
|
||||
path "index" , emit: index
|
||||
path "bwameth" , emit: index
|
||||
path "*.version.txt", emit: version
|
||||
|
||||
script:
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
- bwameth
|
||||
- bwameth_index
|
||||
files:
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t.pac
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t.pac
|
||||
md5sum: 7586c6a3be45c4dea15376a5c7bb9bf0
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t.amb
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t.amb
|
||||
md5sum: 87e019665cbb66bdee2bacccb26845c9
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t.ann
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t.ann
|
||||
md5sum: a4659a63572b6998c67457bd8e95790d
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t.bwt
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t.bwt
|
||||
md5sum: 582854008bcbe99d5b51290773a7db5f
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t
|
||||
md5sum: db670853725f4a31080c991e9df6b330
|
||||
- path: ./output/bwameth/index/genome.fa.bwameth.c2t.sa
|
||||
- path: ./output/bwameth/bwameth/genome.fa.bwameth.c2t.sa
|
||||
md5sum: 020db07e7e1544dc961c30c9936f3213
|
||||
|
|
Loading…
Add table
Reference in a new issue