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

オープン 初心者向け
#1,297 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, yaml
領域
tooling

調査の方向性

bio-research/skills/nextflow-development/scripts/utils/validators.py の85〜110行目付近にある条件チェックから始めてください。ここではすべての必須列を収集していますが、条件付きのステップが pass のままになっています。次に、scripts/config/pipelines/sarek.yaml の66〜91行目付近にある BAM/CRAM 専用の要件と比較し、issue にある対になった 2 つの gzip FASTQ で問題を再現してください。完了の条件は、FASTQ の行で 'bam' や 'bai' が不足していると報告されなくなり、BAM と CRAM の入力では引き続きこれらが必須のままであることです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
36.8k
フォーク
4.1k
平均マージ
1日 23時間
マージ済み PR(30日)
17

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anthropics/knowledge-work-plugins のほかの issue

anthropics/knowledge-work-plugins の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。