Skip to content

-d option behaves differently between samtools fastq and view modes #1958

Description

@TristanLefebure

Hello

Say you have a BAM file produced by dorado with reads having different dx tags (1, 0, or -1)
If you do :

samtools fastq -d dx:1 -d dx:0 BAMFILE
samtools view -d dx:1 -d dx:0  BAMFILE | samtools fastq

You are not getting the same output. It seems that the -d option within the fastq mode only considers the latest -d call, while the view mode aggregates all the calls. The latest sound much better...

Regards,

Version:
samtools 1.18
Using htslib 1.18

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions