Skip to content

Commit 2857a6b

Browse files
committed
Updated methods
1 parent 7294f50 commit 2857a6b

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

CITATIONS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
1616
17-
- [FASTP](https://github.com/OpenGene/fastp)
17+
- [fastp](https://github.com/OpenGene/fastp)
1818

1919
> Chen S, Zhou Y, Chen Y, Gu J. 2018. fastp: an ultra-fast all-in-one FASTQ preprocessor, Bioinformatics, Volume 34, Issue 17, 01 September 2018, Pages i884–i890, <https://doi.org/10.1093/bioinformatics/bty560>
2020
21-
- [SEQKIT](https://github.com/shenwei356/seqkit)
21+
- [SeqKit](https://github.com/shenwei356/seqkit)
2222

2323
> Shen W, Le S, Li Y, Hu F. 2016. SeqKit: A Cross-Platform and Ultrafast Toolkit for FASTA/Q File Manipulation. PLoS ONE 11(10): e0163962. <https://doi.org/10.1371/journal.pone.0163962>
2424

assets/methods_description_template.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ description: "Suggested text and references to use when describing pipeline usag
33
section_name: "gallvp/prepngs Methods Description"
44
section_href: "https://github.com/gallvp/prepngs"
55
plot_type: "html"
6-
## TODO nf-core: Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
7-
## You inject any metadata in the Nextflow '${workflow}' object
86
data: |
97
<h4>Methods</h4>
10-
<p>Data was processed using gallvp/prepngs v${workflow.manifest.version} ${doi_text} of the nf-core collection of workflows (<a href="https://doi.org/10.1038/s41587-020-0439-x">Ewels <em>et al.</em>, 2020</a>), utilising reproducible software environments from the Bioconda (<a href="https://doi.org/10.1038/s41592-018-0046-7">Grüning <em>et al.</em>, 2018</a>) and Biocontainers (<a href="https://doi.org/10.1093/bioinformatics/btx192">da Veiga Leprevost <em>et al.</em>, 2017</a>) projects.</p>
8+
<p>Data was processed using gallvp/prepngs v${workflow.manifest.version} ${doi_text}, utilising reproducible software environments from the Bioconda (<a href="https://doi.org/10.1038/s41592-018-0046-7">Grüning <em>et al.</em>, 2018</a>) and Biocontainers (<a href="https://doi.org/10.1093/bioinformatics/btx192">da Veiga Leprevost <em>et al.</em>, 2017</a>) projects.</p>
119
<p>The pipeline was executed with Nextflow v${workflow.nextflow.version} (<a href="https://doi.org/10.1038/nbt.3820">Di Tommaso <em>et al.</em>, 2017</a>) with the following command:</p>
1210
<pre><code>${workflow.commandLine}</code></pre>
1311
<p>${tool_citations}</p>

subworkflows/local/utils_nfcore_prepngs_pipeline/main.nf

+7-10
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,11 @@ def validateInputSamplesheet(input) {
168168
// Generate methods description for MultiQC
169169
//
170170
def toolCitationText() {
171-
// TODO nf-core: Optionally add in-text citation tools to this list.
172-
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "Tool (Foo et al. 2023)" : "",
173-
// Uncomment function in methodsDescriptionText to render in MultiQC report
174171
def citation_text = [
175172
"Tools used in the workflow included:",
176173
"FastQC (Andrews 2010),",
174+
"fastp (Chen et al. 2018),",
175+
params.save_group_fasta ? "SeqKit (Shen et al. 2016)," : "",
177176
"MultiQC (Ewels et al. 2016)",
178177
"."
179178
].join(' ').trim()
@@ -182,12 +181,11 @@ def toolCitationText() {
182181
}
183182

184183
def toolBibliographyText() {
185-
// TODO nf-core: Optionally add bibliographic entries to this list.
186-
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "<li>Author (2023) Pub name, Journal, DOI</li>" : "",
187-
// Uncomment function in methodsDescriptionText to render in MultiQC report
188184
def reference_text = [
189185
"<li>Andrews S, (2010) FastQC, URL: https://www.bioinformatics.babraham.ac.uk/projects/fastqc/).</li>",
190-
"<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. doi: /10.1093/bioinformatics/btw354</li>"
186+
"<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. doi: 10.1093/bioinformatics/btw354</li>",
187+
"<li>Chen S, Zhou Y, Chen Y, Gu J. 2018. fastp: an ultra-fast all-in-one FASTQ preprocessor, Bioinformatics, Volume 34, Issue 17, 01 September 2018, Pages i884–i890, doi: 10.1093/bioinformatics/bty560</li>",
188+
params.save_group_fasta ? "<li>Shen W, Le S, Li Y, Hu F. 2016. SeqKit: A Cross-Platform and Ultrafast Toolkit for FASTA/Q File Manipulation. PLoS ONE 11(10): e0163962. doi: 10.1371/journal.pone.0163962</li>" : ""
191189
].join(' ').trim()
192190

193191
return reference_text
@@ -215,9 +213,8 @@ def methodsDescriptionText(mqc_methods_yaml) {
215213
meta["tool_citations"] = ""
216214
meta["tool_bibliography"] = ""
217215

218-
// TODO nf-core: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
219-
// meta["tool_citations"] = toolCitationText().replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
220-
// meta["tool_bibliography"] = toolBibliographyText()
216+
meta["tool_citations"] = toolCitationText().replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
217+
meta["tool_bibliography"] = toolBibliographyText()
221218

222219

223220
def methods_text = mqc_methods_yaml.text

0 commit comments

Comments
 (0)