Commit 4aa1b405 authored by Tamara Hodgetts's avatar Tamara Hodgetts
Browse files

improved versioning trim galore

parent 61c309bb
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -67,7 +67,8 @@ process TRIMGALORE {
        
        cat <<-END_VERSIONS > versions.yml
        ${getProcessName(task.process)}:
              ${getSoftwareName(task.process)}: \$(trim_galore --version 2>&1 | sed 's/^.*version //; s/Last.*\$//')
            ${getSoftwareName(task.process)}: \$(echo \$(trim_galore --version 2>&1) | sed 's/^.*version //; s/Last.*\$//')
            cutadapt: \$(cutadapt --version)
        END_VERSIONS
        """
    } else {
@@ -88,7 +89,8 @@ process TRIMGALORE {
        
        cat <<-END_VERSIONS > versions.yml
        ${getProcessName(task.process)}:
              ${getSoftwareName(task.process)}: \$(trim_galore --version 2>&1 | sed 's/^.*version //; s/Last.*\$//')
            ${getSoftwareName(task.process)}: \$(echo \$(trim_galore --version 2>&1) | sed 's/^.*version //; s/Last.*\$//')
            cutadapt: \$(cutadapt --version)
        END_VERSIONS

        mv ${meta.id}_1_val_1.fq.gz ${prefix_1}.fastq.gz