Skip to content

Update angsd module to use Seqera Containers - #13508

Merged
paulinefx merged 4 commits into
masterfrom
angsd_container
Oct 30, 2026
Merged

paulinefx merged 4 commits into
masterfrom
angsd_container

Conversation

@paulinefx

Copy link
Copy Markdown
Contributor

Closes #13507

@github-actions

Copy link
Copy Markdown

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@@ -1,4 +1,3 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

keep this line please

@@ -1,4 +1,3 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

paulinefx and others added 2 commits October 30, 2026 11:46
The Seqera container (angsd 0.940 with htslib 1.17) produces different
md5s for the contamination and GL soapsnp outputs, so the affected
snapshots were regenerated on linux/amd64.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulinefx

Copy link
Copy Markdown
Contributor Author

Snapshots for angsd/contamination, angsd/gl (gl_soapsnp test) and the bam_docounts_contamination_angsd subworkflow were regenerated in 01be63b.

The ANGSD version is unchanged (0.940), but the new Seqera container is built from angsd=0.940 + htslib=1.17 and produces different output files than the old biocontainer:

  • test.txt (contamination): 82d1c4540168ebd71f572fb1bfd30dda → 148b2fc19ae67f1ea4e4301c056d6707
  • test.glf.gz (GL soapsnp): 6d5bc2aa4b5276781960813c12552600 → 457672d1a922d4922dafbc67d621b555

Conda CI showed the same new md5s, since it also builds a fresh env from environment.yml. The snapshots were generated on linux/amd64, and the new values match the ones reported by the failing CI jobs.

The # yaml-language-server schema line is also restored in the gl and soapsnpcalibration meta.yml files, as requested.

Comment added by Claude Opus 5.5

@paulinefx

Copy link
Copy Markdown
Contributor Author

Correction to my earlier comment: I compared the old biocontainer (angsd:0.940--hce60e53_2) and the new Seqera image directly on linux/amd64. Only one of the two snapshot changes comes from the container.

angsd/gl (gl_soapsnp): this change comes from the container, but the difference is negligible. Each image gives the same result on every run. Out of 4,671,036 likelihood values in the decompressed GLF, 79 differ, each only in the last bit (max relative difference 8.5e-16, e.g. -0.009558624213742414 vs -0.009558624213742418). .glf.pos.gz is identical. Both images ship the same angsd-0.940-hce60e53_2 and htslib-1.17-h81da01d_2 builds. The difference comes from the newer runtime libraries in the Seqera image (e.g. libgcc 12.2 → 16.2), not from ANGSD itself.

angsd/contamination and bam_docounts_contamination_angsd: this change is not caused by this PR. The old container also produces 148b2fc19ae67f1ea4e4301c056d6707, consistently, with byte-identical test.icnts.gz. The old snapshot (82d1c45…) was recorded on 2026-03-13, when angsd/docounts still used ANGSD 0.939. #10909 then bumped docounts to 0.940 and updated only docounts' own snapshot. The downstream contamination/subworkflow snapshots have been stale since then and were only re-tested now because this PR touches them.

Comment added by Claude Opus 5.5

@paulinefx
paulinefx added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit 20c6e64 Oct 30, 2026
69 checks passed
@paulinefx
paulinefx deleted the angsd_container branch October 30, 2026 13:28
delfiterradas pushed a commit to delfiterradas/modules that referenced this pull request Oct 30, 2026
* Update angsd module to use Seqera Containers

* Restore meta.yml schema lines and update angsd snapshots

The Seqera container (angsd 0.940 with htslib 1.17) produces different
md5s for the contamination and GL soapsnp outputs, so the affected
snapshots were regenerated on linux/amd64.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mahesh-panchal pushed a commit to mahesh-panchal/nf-core-modules that referenced this pull request Nov 3, 2026
…n `scrnaseq` (nf-core#13090)

* Modify starsolo to work in scrnaseq pipeline

* Clean nextflow.config

* Update nf-test inputs

* Remove unstable files from snapshot

* Create conda-lock folder

* Starsolo multiple changes

* Update container

* Capture summary stats for bam output

* Ignore empty file

* Update meta.yml

* Update meta, output files and add tests for missing solotypes

* Update paths in the tests and update snapshots

* Get statistics instead of md5 for sam outputs

* Fix meta.yml

* Assert process success outside of assertAll

* Do not rely on a NO_FILE empty file

* Implement reviewer suggestions

* Revert change in .gitignore

* Fix linting

* Fix prek error

* Remove trailing whitespace

* Update modules/nf-core/star/starsolo/main.nf

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/main.nf

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/main.nf

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/main.nf

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/meta.yml

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/meta.yml

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* Update modules/nf-core/star/starsolo/meta.yml

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>

* parabricks/mutectcaller: pass --pon to mutectcaller, emit tbi (nf-core#13440)

* parabricks/mutectcaller: pass --pon to mutectcaller

The panel of normals was prepared with prepon and annotated with
postpon, but never passed to mutectcaller via --pon, so PON sites were
not filtered during calling.

prepon was also silently skipped whenever the index was already named
<pon>.tbi: the cp onto itself failed, and its && chain short-circuited
prepon without failing the task. Only copy the index when its name
differs.

Re-enable the PON test by reheadering the chr21 Mills VCF to the
reference contigs with bcftools/reheader in a setup block.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/mutectcaller: assert PON effect explicitly, use sanitizeOutput

Snapshot all outputs via sanitizeOutput. The PON test now asserts that
--pon reaches mutectcaller, that calls overlapping PON deletions are
dropped (and present in the tumour-only test), and that postpon flags
PON sites, instead of relying on a snapshot recorded from the fix.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/mutectcaller: read test VCFs via nft-vcf

Replace hand-rolled linesGzip/tab-split parsing with the nft-vcf
VcfFile header and VariantContext API.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/mutectcaller: add intervals and tumour-normal tests

Replace the commented-out tests. The intervals test failed only because
of the pre-nf-core#11647 input structure. For tumour-normal, the chr21 test
BAMs share read group ID and PU, so a setup step renames the normal's
read group with samtools/addreplacerg. Drop the tumour-normal +
intervals test: no somatic calls fall in the interval gaps, so it adds
nothing over the two.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/mutectcaller: emit the tabix index Parabricks writes

Parabricks writes <prefix>.vcf.gz.tbi alongside the VCF, from mutectcaller
without a PON and from postpon with one. Expose it as a tbi output so
pipelines need no separate indexing step. The index is snapshotted by name
only, as its content depends on the VCF header and varies between runs.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/mutectcaller: name outputs after the prefix

A PON index not named <pon>.tbi is copied to that name, and the copy matched
the *.vcf.gz.tbi glob, so tbi emitted two files. Name all outputs after the
prefix and test a PON with a differently named index.

Also accept csi BAM indexes in meta.yml, quote the prepon error for PON
headers with extra contigs, and unquote withName selectors in the test config.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* parabricks/rnafq2bam: stop pbrun log overwriting STAR Log.final.out (nf-core#13493)

--logfile and --out-prefix both wrote ${prefix}.Log.final.out, so the
emitted log_final held the pbrun run log instead of STAR's alignment
summary. Write the pbrun log to ${prefix}.pbrun.log, and assert in the
tests that log_final contains STAR's mapping stats.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Add scdblfinder module (nf-core#13465)

* new module: scdblfinder

* scdblfinder: add container metadata, conda locks and test snapshot

* scdblfinder: gzip the h5ad and return boolean doublet predictions

Write the h5ad with gzip compression, as in the other scdownstream modules.

The predictions output is now a CSV with a single boolean column (true for
doublets), named after the prefix and indexed by cell barcode. This matches
the layout of the other doublet detection modules, so scdownstream can combine
them. The full scDblFinder table (class, score and related columns) moves to
a new scores output.

* scdblfinder: pass options through ext.args and address review comments

Take only the meta and h5ad as inputs and pass dbr, samples and other
scDblFinder options through task.ext.args, with a tests/nextflow.config that
sets ext.args from params.module_args. A single string given as samples is
read as the name of an obs column.

Use ${prefix} in the output paths instead of globs, add the YAML ontology to
the versions entries in meta.yml, name the test closure parameters, and
snapshot the predictions file in the real tests.

* scdblfinder: report all package versions and snapshot sanitizeOutput

Report the versions of anndataR, SingleCellExperiment, BiocParallel and rhdf5
in versions.yml, in the template and in the stub.

Snapshot sanitizeOutput(process.out) in the real tests, with the h5ad and
scores channels as unstable keys and the scores line count alongside.

Add the nf-core licence header to main.nf, shorten the predictions
description in meta.yml and drop a comment that repeated the code.

* Bump fgumi to 0.9.0 (nf-core#13496)

* bump fgumi to 0.9.0

* bump snaps

* gatk4/haplotypecaller: emit realigned BAM index (nf-core#13460)

When --bam-writer-type is set, HaplotypeCaller writes <prefix>.realigned.bai
next to the realigned BAM (BAM index creation is on by default), but only
the BAM was declared as an output. The index was therefore not staged out
of the task work dir when scratch is enabled, and could not be reliably
passed downstream.

Add an optional `bai` output (*.realigned.bai), create it in the stub, and
document it in meta.yml. Add a stub test covering the new output.


Claude-Session: https://claude.ai/code/session_01N14QD6WfKfDC1pFysaurQL

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>

* new module: celltypist (nf-core#13438)

* new module: celltypist

* celltypist: add a real test and point the model input at a .pkl

The stub-only test passed an .h5ad as the model. Both tests now use a
normalised pbmc3k query and a small CellTypist model, to be added to
nf-core/test-datasets. The snapshot will be regenerated once that data
is available.

* celltypist: add test snapshot

* celltypist: apply prettier quoting to meta.yml

* celltypist: check output line counts instead of checksums

The scores in the CSV outputs are floating point values that can differ in the
last digits between platforms, so the real test now checks the number of lines
in each file and snapshots only the versions.

* celltypist: use a Seqera container and expose the optional files

Build the container with nf-core modules containers create and add the
containers block and conda lock files.

Add the optional over_clustering, gene_file and cell_file inputs, and the
optional xlsx and plots outputs. The CSV outputs are optional as well, since
CellTypist writes only the Excel file when --xlsx is used.

Use ${prefix} in the output names instead of globs, add tests/nextflow.config
for ext.args, add a test for --xlsx and --plot-results, and snapshot
sanitizeOutput(process.out) in the tests.

* celltypist: follow ext.args in the stub and test the optional inputs

Make the stub write the Excel workbook and the plot instead of the three CSV
files when --xlsx and --plot-results are given.

Add a test for over_clustering with --majority-voting, using a label file
generated in the test, and move the line counts into the snapshots.

Widen the h5ad input pattern to the formats CellTypist accepts and add EDAM
terms to the input formats in meta.yml.

* celltypist: test matrix market input and majority voting

Add a test with a small matrix market input and gene and cell files generated
in the test, and snapshot the header of the majority voting labels file.

Snapshot the checksum of predicted_labels in the plain test.

Add the binary format term for the model in meta.yml and shorten the
descriptions, starting the output descriptions with "Optional".

* celltypist: snapshot the majority voting labels checksum

The labels file is the same on every run when an over-clustering file is
given, so snapshot its checksum instead of exempting it and checking only the
header line.

* varnet: bump to 1.5.4, version from --version, tumor-only support (nf-core#13147)

* varnet: bump to 1.5.4, report version from --version, support tumor-only mode

* varnet/filter: sort candidates so the output does not depend on the filesystem

* varnet: take the tumor-only resources as individual files, staged with stageAs

* summarizedexperiment: keep all-NA sample columns so assays stay aligned (nf-core#13498)

* summarizedexperiment: keep all-NA sample columns so assays stay aligned

A sample with no reads is all zero in counts but all NA after length
scaling, and an all-NA column is read as logical, so it was dropped from
that matrix only and checkRowColNames() stopped with "Rows or columns
different among input matrices". Keep an all-NA column when the same
column is numeric in another matrix; all-NA annotation columns are still
dropped. Adds a regression test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* summarizedexperiment: coerce only all-NA columns; snapshot versions in new test

Test columns by position rather than by name (duplicate names survive
read_delim_flexible), and convert only the logical all-NA columns to
numeric so integer count assays keep their type. The new test now
snapshots versions like the other tests and writes its inputs line by
line with sort: false so the header stays first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* summarizedexperiment: warn on dropped all-NA columns; check samples in test

Warn when an all-NA column is dropped because it is not numeric in any
input matrix, so a sample that is all-NA everywhere no longer disappears
silently. Coerce only the kept all-NA columns.

Print the SummarizedExperiment summary at the end of the session log, and
have the all-NA test assert that both assays and both samples are present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Update ampcombi module to use Seqera container (nf-core#13504)

* Update ampcombi2 module to use Seqera containers (nf-core#13506)

* Update angsd module to use Seqera Containers (nf-core#13508)

* Update angsd module to use Seqera Containers

* Restore meta.yml schema lines and update angsd snapshots

The Seqera container (angsd 0.940 with htslib 1.17) produces different
md5s for the contamination and GL soapsnp outputs, so the affected
snapshots were regenerated on linux/amd64.

Generated by Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Fix typo and implement multiple testing scenarios

* Update snapshot

* Fix linting

* Remove unstable file from snapshot

* Get summary name and line count in snapshot

---------

Co-authored-by: Evangelos Karatzas <32259775+vagkaratzas@users.noreply.github.com>
Co-authored-by: Friederike Hanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jonathan Manning <jonathan.manning@seqera.io>
Co-authored-by: Iraaj G. <98648540+iraajgangavaram@users.noreply.github.com>
Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>
Co-authored-by: Anders Sune Pedersen <37172585+asp8200@users.noreply.github.com>
Co-authored-by: Kiran Krishnamachari <kirankchari@gmail.com>
Co-authored-by: Pauline Fourgoux <20558943+paulinefx@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update angsd/contamination, angsd/docounts, angsd/dosaf, angsd/gl, angsd/realsfs, angsd/soapsnpcalibration modules to use Seqera Containers

2 participants