Commit 26516ba2 authored by Chris Cheshire's avatar Chris Cheshire
Browse files

Restricted some prepare genome parameter labels

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

if (params.run_genome_prep) {
if (params.run_genome_prep && (params.fasta.endsWith(".gz") || params.spikein_fasta.endsWith(".gz"))) {
    process {
        withName: '.*PREPARE_GENOME:GUNZIP_.*' {
            publishDir = [
@@ -66,11 +66,18 @@ if (params.run_genome_prep) {
                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) {
        withName: '.*CHROMSIZES' {
            publishDir = [
                path: { "${params.outdir}/00_genome" },