Skip to content

Commit

Permalink
chore(#336): Add tools citations
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Oct 17, 2023
1 parent e457cde commit d1adc92
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/WorkflowMethylseq.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,16 @@ class WorkflowMethylseq {

public static String toolCitationText(params) {

// TODO nf-core: Optionally add in-text citation tools to this list.
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "Tool (Foo et al. 2023)" : "",
// Uncomment function in methodsDescriptionText to render in MultiQC report
// FIXME Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "Tool (Foo et al. 2023)" : "",
def citation_text = [
"Tools used in the workflow included:",
"FastQC (Andrews 2010),",
"Trim Galore! (Krueger)",
"Bismark (Krueger 2011)",
"bwa-meth (Pedersen 2014)",
"Picard (Broad Institute 2019)",
"Qualimap (Okonechnikov 2015)",
"Preseq (Daley 2013)",
"MultiQC (Ewels et al. 2016)",
"."
].join(' ').trim()
Expand Down Expand Up @@ -96,7 +100,7 @@ class WorkflowMethylseq {
meta["tool_bibliography"] = ""

// TODO Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
//meta["tool_citations"] = toolCitationText(params).replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
meta["tool_citations"] = toolCitationText(params).replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
//meta["tool_bibliography"] = toolBibliographyText(params)


Expand Down

0 comments on commit d1adc92

Please sign in to comment.