Skip to content

update to exclude Duplicates from reset output#2047

Merged
whitwham merged 2 commits into
samtools:developfrom
vasudeva8:resetupd1
May 16, 2024
Merged

update to exclude Duplicates from reset output#2047
whitwham merged 2 commits into
samtools:developfrom
vasudeva8:resetupd1

Conversation

@vasudeva8

Copy link
Copy Markdown
Contributor

Reset doesn't remote the duplicate alignments during its operation. This was reported by Kevin Levis.
It removes supplementary and secondary alignments. This PR adds duplicate as well to this list as default.
Also added an option to override the default using flags.

To avoid the update of existing tests results, the exclude flag was added to get old behaviour on reset command.

@vasudeva8 vasudeva8 changed the title discards DUP alignments by default, added exclude flag option update to exclude Duplicates from reset output May 9, 2024
@whitwham

Copy link
Copy Markdown
Member

For samtools reset you need to clear the duplicate flag but keep the read. Unlike supplementary or secondary alignments, duplicate sequences are real reads that came out of the sequencer. The original fastq files would have those sequences in.

@vasudeva8

Copy link
Copy Markdown
Contributor Author

The duplicate flag is cleared by default and an override to have it as it was - the initial behaviour - provided.
Test cases updated to use this override, --dupflag, to avoid output file update.

@whitwham whitwham merged commit a5c2e8e into samtools:develop May 16, 2024
@vasudeva8 vasudeva8 deleted the resetupd1 branch May 21, 2024 09:29
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.

2 participants