Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mariaTsontaki
Copy link
Contributor

@mariaTsontaki mariaTsontaki commented Nov 1, 2025

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
    • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
    • If necessary, also make a PR on the nf-core/magmap branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 37e71e0

+| ✅ 240 tests passed       |+
#| ❔   2 tests were ignored |#
!| ❗   6 tests had warnings |!
Details

❗ Test warnings:

  • nextflow_config - Config manifest.version should end in dev: 1.0.0
  • readme - README contains the placeholder zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).
  • pipeline_todos - TODO string in README.md: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file.
  • pipeline_todos - TODO string in README.md: If you use nf-core/magmap for your analysis, please cite it using the following doi: 10.5281/zenodo.XXXXXX Add bibliography of tools and data used in your pipeline
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/magmap/magmap/subworkflows/local/fastqc_trimgalore/main.nf: _ versions = ch_versions.ifEmpty(null) // channel: [ versions.yml ]
    _
  • schema_lint - Input mimetype is missing or empty

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: docs/images/nf-core-magmap_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-magmap_logo_dark.png

✅ Tests passed:

Run details

  • nf-core/tools version 3.4.1
  • Run at 2025-11-03 09:07:31

path("${params.outdir}/summary_tables/magmap.rRNA.counts.tsv.gz").linesGzip.findAll { l -> l.contains('orf') },
path("${params.outdir}/summary_tables/magmap.rRNA.counts.tsv.gz").csv(sep: '\t', decompress: true, header: true).columns["tpm"].sum().round(),
path("${params.outdir}/summary_tables/magmap.tmRNA.counts.tsv.gz").linesGzip.findAll { l -> l.contains('orf') },
path("${params.outdir}/summary_tables/magmap.tmRNA.counts.tsv.gz").csv(sep: '\t', decompress: true, header: true).columns["tpm"].sum().toBigDecimal().round(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add the function toBigDecimal() for round() to work in this case. sum() returns a class of Integer when there is only one row in the csv, while when there are more than 1 line, the sum() returns a class of BigDecimal, which can be used as input for round().

Here is the error I had, when I was running the test with .sum().round():

Test [e5339dde] '-profile test' groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.round() is applicable for argument types: () values: []
Possible solutions: find(), find(groovy.lang.Closure), and(java.lang.Number), mod(java.lang.Number), minus(java.lang.Character), minus(java.lang.Number)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should add that to all.

Copy link
Member

@erikrikarddaniel erikrikarddaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good. One comment, but fine to merge as it is. We can add toBigDecimal() later/when needed.
Also: One test failed but it seems to be because that run was cancelled, so no problem.

path("${params.outdir}/summary_tables/magmap.rRNA.counts.tsv.gz").linesGzip.findAll { l -> l.contains('orf') },
path("${params.outdir}/summary_tables/magmap.rRNA.counts.tsv.gz").csv(sep: '\t', decompress: true, header: true).columns["tpm"].sum().round(),
path("${params.outdir}/summary_tables/magmap.tmRNA.counts.tsv.gz").linesGzip.findAll { l -> l.contains('orf') },
path("${params.outdir}/summary_tables/magmap.tmRNA.counts.tsv.gz").csv(sep: '\t', decompress: true, header: true).columns["tpm"].sum().toBigDecimal().round(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should add that to all.

@mariaTsontaki
Copy link
Contributor Author

mariaTsontaki commented Nov 4, 2025

Looks all good. One comment, but fine to merge as it is. We can add toBigDecimal() later/when needed. Also: One test failed but it seems to be because that run was cancelled, so no problem.

Yes, let's do that! I will now merge then.
For the failing test, I guess it was because of the yesterday's big queue. it timed-out after 6h. I just re-run it now and it succeeded.

@mariaTsontaki mariaTsontaki merged commit 6f58b2b into nf-core:dev Nov 4, 2025
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants