Closed tolot27 closed 1 year ago
Hi @tolot27. Thanks for the patch and sorry for being late in picking it up. I have a question. According to the BAM specs template_length can be negative. Taking the absolute value will impact queries that test for tlen less than zero. Would it not be better to import std.math (like you did), but allow the CLI parameter to change to something like:
abs(template_length) < 8000
?
Reject.
This PR adds support for filtering absolute template length.
Currently, only positive template length values can be filtered, i. e. with
sambamba view -S -F "template_length < 8000"
. Using"template_length < 8000 AND template_length > -8000"
results in the following error:The PR computes the absolute value of the template_length before comparison.