Commit fb403f62 authored by Chris Cheshire's avatar Chris Cheshire
Browse files

Removed changes as you cant use endsWith

parent 52514e55
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ if(params.run_input_check) {
========================================================================================
*/

if (params.run_genome_prep && (params.fasta.endsWith(".gz") || params.spikein_fasta.endsWith(".gz"))) {
if (params.run_genome_prep) {
    process {
        withName: '.*PREPARE_GENOME:GUNZIP_.*' {
            publishDir = [
@@ -66,19 +66,11 @@ if (params.run_genome_prep && (params.fasta.endsWith(".gz") || params.spikein_fa
                enabled: params.save_reference
            ]
        }
    }
}

if (params.run_genome_prep && (params.bowtie2.endsWith(".tar.gz") || params.spikein_bowtie2.endsWith(".tar.gz"))) {
     process {
        withName: 'NFCORE_CUTANDRUN:CUTANDRUN:PREPARE_GENOME:UNTAR_.*' {
            ext.args2 = '--no-same-owner'
        }
     }
}

if (params.run_genome_prep) {
    process {
        withName: '.*CHROMSIZES' {
            publishDir = [
                path: { "${params.outdir}/00_genome" },