Skip to content

Add UMI support to samtools fastq / import. Needs htslib#1960#2270

Merged
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:UMI-import-export
Oct 21, 2025
Merged

Add UMI support to samtools fastq / import. Needs htslib#1960#2270
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:UMI-import-export

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

The bulk of these changes are in the associated htslib PR. This PR just adds CLI / usage information.

Also fixed the generated header comment to remove trailing white space, and added missing CASAVA tag hints.

Fixes #2259
Fixes #2262

Draft as I forgot to update man pages. I'll do that tomorrow, but I wanted to get CI working (it failed due to CI flakiness before)

@jkbonfield jkbonfield marked this pull request as ready for review October 8, 2025 12:54
@jkbonfield jkbonfield force-pushed the UMI-import-export branch 2 times, most recently from 9962ec7 to 8e96987 Compare October 14, 2025 14:07
The bulk of these changes are in the associated htslib PR.  This PR
just adds CLI / usage information.

Also fixed the generated header comment to remove trailing white
space, and added missing CASAVA tag hints.

Fix samtools fasta usage statement. Samtools fasta previously hid a
lot of options from the usage statement despite them applying to both
fasta and fastq outputs.  Examples include setting compression level
and use of various Casava tags.
Some of these are unlikely combinations in FASTA output, but we
now document all the options that affect output.

Improved samtools fasta/fastq man page.  Added the UMI options, but
also added the undocumented -v option and updated the markup to be
standard with italic (or underscored in nroff) for operands.

Bug fixed the import SAM header comment to use -n instead of -N when
documenting how to convert back to a single-ended fastq file.

Fixes samtools#2259
Fixes samtools#2262
@vasudeva8 vasudeva8 merged commit 0978fa7 into samtools:develop Oct 21, 2025
6 checks passed
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.

Consider UMIs in samtools import Consider UMIs in samtools fastq

2 participants