Skip to content

fixmate no longer removes PAIRED flag.#2056

Merged
daviesrob merged 2 commits into
samtools:developfrom
whitwham:fixmate_pair_flag
May 30, 2024
Merged

fixmate no longer removes PAIRED flag.#2056
daviesrob merged 2 commits into
samtools:developfrom
whitwham:fixmate_pair_flag

Conversation

@whitwham

Copy link
Copy Markdown
Member

No longer removes paired flag from reads that have no mate (either removed or missing).

Fixes #2052 using the idea that the PAIRED flag is a sequencing technology indicator not a feature of alignment. This is a change in the behaviour of fixmate.

No longer removes paired flag from reads that have no mate (either removed or missing).  Fixes samtools#2052 using the idea that the PAIRED flag is a sequencing technology indicator not a feature of alignment.
@daviesrob daviesrob self-assigned this May 23, 2024
@daviesrob

Copy link
Copy Markdown
Member

Do we need to update the manual page to reflect this change?

@whitwham

Copy link
Copy Markdown
Member Author

I think we should, since it is a change in behaviour.

Comment thread doc/samtools-fixmate.1 Outdated
Remove secondary and unmapped reads.
Remove secondary and unmapped reads. If one of a pair is removed, the PAIRED
flag will not be unset on the remaining read. This is a change from the older
behaviour.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should probably add something like in samtools versions up to 1.20

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

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.

fixmate creates invalid SAM flags

2 participants