From 48337c8f0c7c94c473fe190230d5d3d75df42b4d Mon Sep 17 00:00:00 2001 From: atrigila <18577080+atrigila@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:31:41 +0000 Subject: [PATCH] Address Make citation tools dependent on whether tool was executed #468 --- .../local/utils_nfcore_smrnaseq_pipeline/main.nf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/subworkflows/local/utils_nfcore_smrnaseq_pipeline/main.nf b/subworkflows/local/utils_nfcore_smrnaseq_pipeline/main.nf index e7f656d0..81d9b80a 100644 --- a/subworkflows/local/utils_nfcore_smrnaseq_pipeline/main.nf +++ b/subworkflows/local/utils_nfcore_smrnaseq_pipeline/main.nf @@ -220,23 +220,22 @@ def toolCitationText() { // Uncomment function in methodsDescriptionText to render in MultiQC report def citation_text = [ "Tools used in the workflow included:", - "FastQC (Andrews 2010),", - "MultiQC (Ewels et al. 2016),", + !params.skip_fastqc ? "FastQC (Andrews 2010)," : "", + !params.skip_multiqc ? "MultiQC (Ewels et al. 2016)," : "", + !params.skip_fastp ? "fastp (Chen et al. 2018)," : "", + !params.skip_mirdeep ? "MiRDeep2 (Friedländer et al. 2012)," : "", + params.filter_contamination ? "Contamination filtering tools: BLAT (Kent 2002), Bowtie2 (Langmead and Salzberg 2012)," : "", + params.mirtrace_species ? "miRTrace (Kang et al. 2018)," : "", "UMI-tools (Smith et al. 2017),", - "fastp (Chen et al. 2018),", - "miRTrace (Kang et al. 2018),", "Bowtie (Langmead et al. 2009),", - "Bowtie2 (Langmead and Salzberg 2012),", "SAMtools (Li et al. 2009),", "EdgeR (Robinson et al. 2010),", "Mirtop (Desvignes et al. 2019),", - "MiRDeep2 (Friedländer et al. 2012),", "SeqKit (Shen et al. 2016),", "UMICollapse (Liu 2020),", - "BLAT (Kent 2002)", "Seqcluster (Pantano et al. 2011)", "." - ].join(' ').trim() + ].join(' ').trim() return citation_text }