1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-13 07:03:10 +00:00

Link rather than mv

This commit is contained in:
James Fellows Yates 2023-01-24 15:32:49 +01:00
parent bdbb111344
commit 7843665544
2 changed files with 5 additions and 4 deletions

View file

@ -23,10 +23,10 @@ process PORECHOP_PORECHOP {
def prefix = task.ext.prefix ?: "${meta.id}"
"""
## To ensure ID matches rest of pipeline based on meta.id rather than input file name
mv $reads ${prefix}.fastq.gz
ln -s $reads ${prefix}.fastq.gz
porechop \\
-i $reads \\
-i ${prefix}.fastq.gz \\
-t $task.cpus \\
$args \\
-o ${prefix}_porechopped.fastq.gz \\

View file

@ -6,10 +6,11 @@ Changes in module 'nf-core/porechop/porechop'
def prefix = task.ext.prefix ?: "${meta.id}"
"""
+ ## To ensure ID matches rest of pipeline based on meta.id rather than input file name
+ mv $reads ${prefix}.fastq.gz
+ ln -s $reads ${prefix}.fastq.gz
+
porechop \\
-i $reads \\
- -i $reads \\
+ -i ${prefix}.fastq.gz \\
-t $task.cpus \\
$args \\
- -o ${prefix}.fastq.gz \\