knowledge-work-plugins icon indicating copy to clipboard operation
knowledge-work-plugins copied to clipboard

Sarek FASTQ samplesheets fail validation because BAM and BAI are always required

Open agammann opened this issue 1 month ago • 5 comments

Summary

On main at 95bdacc803aa5cfdb10f35e5b9fb2d4b11100133, Sarek samplesheet generation reports missing BAM and BAI columns for FASTQ input.

Steps to reproduce

  1. Put two valid, paired gzip FASTQ files named T1-X_R1_001.fastq.gz and T1-X_R2_001.fastq.gz in ./fastqs. I used one record in each file: @read1, ACGT, +, !!!!.
  2. From the repository root, run:
python bio-research/skills/nextflow-development/scripts/generate_samplesheet.py ./fastqs sarek --input-type fastq -o sarek.csv

Observed behavior

The script finds and pairs both FASTQs into one row and infers tumor status 1, then reports:

Row 2: Missing required column 'bam'
Row 2: Missing required column 'bai'

Accepting the default N at Proceed anyway? exits 1 without writing a samplesheet. Adding --no-interactive prints the same errors, writes a sheet, and exits 0.

Expected behavior

A FASTQ row should not require BAM or BAI columns. The Sarek configuration applies those requirements only when the input type is BAM or CRAM.

Cause and verification

The validator collects every required column, then leaves the conditional check as pass. I reproduced the behavior on Windows with Python 3.14.8 using actual decompressible gzip FASTQs, in both interactive and noninteractive modes. I did not run the Nextflow pipeline.

agammann avatar Oct 10 '26 04:10 agammann

Hi @agammann if you are not already working on this issue i would like to take it up.

mansi-singh4 avatar Oct 11 '26 04:10 mansi-singh4

Thanks—please feel free to take it up.

agammann avatar Oct 11 '26 05:10 agammann

A clarification to my earlier reply, @mansi-singh4: I reported the issue, and the maintainers handle upstream changes. The repo's external PR workflow is set up to close non-member PRs that change plugin code, so please check with a maintainer before investing time in a PR.

agammann avatar Oct 13 '26 03:10 agammann

3. A clarification to my earlier reply, @mansi-singh4: I reported the issue, and the maintainers handle upstream changes. The repo's external PR workflow is set up to close non-member PRs that change plugin code, so please check with a maintainer before investing time in a PR.

yeah that had occurred to me too... but I am new to open source and have no idea how to contact with the maintainers here...

mansi-singh4 avatar Oct 13 '26 14:10 mansi-singh4

You can ask right here in this issue, @mansi-singh4. For example: "Could a maintainer advise whether an external fix for this bug would be welcome, and how I should submit it under the current PR policy?" Then give them time to respond before preparing a PR.

agammann avatar Oct 14 '26 03:10 agammann