Skip to content

Fastq chunks fix 2#288

Merged
wwood merged 3 commits intomainfrom
fastq_chunks_fix
Mar 17, 2026
Merged

Fastq chunks fix 2#288
wwood merged 3 commits intomainfrom
fastq_chunks_fix

Conversation

@wwood
Copy link
Owner

@wwood wwood commented Mar 17, 2026

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69ae3c08f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

elif base.endswith(('.fa', '.fasta', '.fna')):
lines_per_read = 2
else:
raise Exception(f"Cannot determine format (FASTA or FASTQ) for chunking from file extension: {path}")

Choose a reason for hiding this comment

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

P2 Badge Keep chunking working for extensionless sequence files

This change now hard-fails chunking when the input filename does not end in one of the recognized FASTA/FASTQ extensions, even though previously --read-chunk-size worked for unwrapped FASTA regardless of filename. In environments that stream reads via temporary files/FIFOs without canonical suffixes (a common pattern in pipelines), chunking will now raise this exception and abort; please avoid making extension a hard requirement (e.g., infer from content or preserve the previous FASTA fallback).

Useful? React with 👍 / 👎.

@wwood wwood merged commit cacd9c1 into main Mar 17, 2026
4 checks passed
@wwood wwood deleted the fastq_chunks_fix branch March 17, 2026 03:02
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.

1 participant