generate_samplesheet.py emits malformed CSV when FASTQ paths contain commas
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- bioinformatics
Hướng nghiên cứu
Lỗi nằm ở _write_samplesheet trong bio-research/skills/nextflow-development/scripts/generate_samplesheet.py, hàm này nối các giá trị của dòng bằng ',' thay vì đặt chúng trong dấu ngoặc kép. Hãy tái hiện lỗi bằng hai lệnh trong issue với tên thư mục có chứa dấu phẩy, sau đó kiểm tra số trường ở dòng tiêu đề và dòng dữ liệu. Hoàn thành khi dòng được tạo có bốn trường, tệp vượt qua --validate, và một bài kiểm tra hồi quy bao phủ trường hợp dấu phẩy trong đường dẫn FASTQ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
At commit 95bdacc803aa5cfdb10f35e5b9fb2d4b11100133, generate_samplesheet.py reports success but writes an invalid RNA-seq CSV when a FASTQ path contains a comma.
Steps to reproduce
- Place a valid paired FASTQ set at
reads,run/sample_R1_001.fastq.gzandreads,run/sample_R2_001.fastq.gz(the directory name contains a comma). - From the repository root, run:
python bio-research/skills/nextflow-development/scripts/generate_samplesheet.py "reads,run" rnaseq -o samplesheet.csv --no-interactive
python bio-research/skills/nextflow-development/scripts/generate_samplesheet.py --validate samplesheet.csv rnaseq
Observed behavior
The generation command exits 0 and reports one samplesheet row. The CSV header has four fields (sample,fastq_1,fastq_2,strandedness), but the data row parses as six fields because both FASTQ paths contain a comma. The validation command exits 1, reporting missing FASTQ paths and an invalid strandedness value.
Expected behavior
Each FASTQ path remains one quoted CSV field. The data row has four fields and the generated samplesheet passes --validate.
Cause and verification
_write_samplesheet writes rows with ','.join(values) instead of a CSV writer. I reproduced this on Windows with Python 3.14.8 and valid gzip FASTQ records. Using the same input, the unmodified script produced 4 header fields / 6 data fields and failed its own validator. A local change using csv.writer produced 4 / 4 fields, passed validation, and passed a focused regression test.
- Ngôn ngữ chính
- Python
- Star
- 36.8k
- Fork
- 4.1k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anthropics/knowledge-work-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
anthropics/knowledge-work-plugins#1357 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/knowledge-work-plugins#1308 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anthropics/knowledge-work-plugins#1306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
package_data_skill.py reports success with an empty ZIP under .claudeCó thể làm lại được @swati781895-netizen đã nhận 48 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anthropics/knowledge-work-plugins#1298 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anthropics/knowledge-work-plugins#1297 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anthropics/knowledge-work-plugins
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
SQL Lab: pasting text that matches no database into the "Data connection" select throws TypeErrorĐang mở#bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug crash needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Community-Access/quill#2135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
munendra07-tech/agent-crashtest#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
braveapi: time range filter is sent as time_range, which the Brave API ignores (needs freshness)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày