mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Merge pull request #1710 from jfy133/fix-filtlong
Fix filtlong - makes running without shortreads work correctly, and also ensures all tests produce …
This commit is contained in:
commit
94dd8f63df
3 changed files with 12 additions and 7 deletions
|
@ -20,7 +20,7 @@ process FILTLONG {
|
|||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def short_reads = meta.single_end ? "-1 $shortreads" : "-1 ${shortreads[0]} -2 ${shortreads[1]}"
|
||||
def short_reads = !shortreads ? "" : meta.single_end ? "-1 $shortreads" : "-1 ${shortreads[0]} -2 ${shortreads[1]}"
|
||||
"""
|
||||
filtlong \\
|
||||
$short_reads \\
|
||||
|
|
|
@ -2,4 +2,6 @@ process {
|
|||
|
||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||
|
||||
ext.args = "--min_length 10"
|
||||
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
- filtlong
|
||||
files:
|
||||
- path: output/filtlong/test_lr_filtlong.fastq.gz
|
||||
md5sum: 7029066c27ac6f5ef18d660d5741979a
|
||||
contains:
|
||||
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
|
||||
|
||||
- name: filtlong test_filtlong_illumina_se
|
||||
command: nextflow run ./tests/modules/filtlong -entry test_filtlong_illumina_se -c ./tests/config/nextflow.config -c ./tests/modules/filtlong/nextflow.config
|
||||
|
@ -12,7 +13,8 @@
|
|||
- filtlong
|
||||
files:
|
||||
- path: output/filtlong/test_lr_filtlong.fastq.gz
|
||||
md5sum: 7029066c27ac6f5ef18d660d5741979a
|
||||
contains:
|
||||
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
|
||||
|
||||
- name: filtlong test_filtlong_illumina_pe
|
||||
command: nextflow run ./tests/modules/filtlong -entry test_filtlong_illumina_pe -c ./tests/config/nextflow.config -c ./tests/modules/filtlong/nextflow.config
|
||||
|
@ -20,4 +22,5 @@
|
|||
- filtlong
|
||||
files:
|
||||
- path: output/filtlong/test_lr_filtlong.fastq.gz
|
||||
md5sum: 7029066c27ac6f5ef18d660d5741979a
|
||||
contains:
|
||||
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
|
||||
|
|
Loading…
Reference in a new issue