Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted SoftClippedReadFilter to conform to filtering logic #8888

Merged
merged 5 commits into from
Jun 28, 2024

Conversation

jamesemery
Copy link
Collaborator

It looks like when this was added, a mistake was made between a filter returning test() == true (passing the filter) and test() == false (failing the filter, read removed). Furthermore the invert filter argument in here is now redundant as of #8724 and I will go ahead and remove it from this filter. I have also tweaked the filter arguments slightly to clarify what they do now mean more intuitively.

Fixes #8887

@jamesemery jamesemery force-pushed the je_patchSoftclippedReadFilterLogic branch from 985ba41 to 853c008 Compare June 27, 2024 18:36
Copy link
Collaborator

@droazen droazen left a comment

Choose a reason for hiding this comment

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

@jamesemery One comment, then feel free to merge

@@ -53,8 +53,8 @@ private ReadFilterArgumentDefinitions(){}

public static final String KEEP_INTERVAL_NAME = "keep-intervals";

public static final String SOFT_CLIPPED_RATIO_THRESHOLD = "soft-clipped-ratio-threshold";
public static final String SOFT_CLIPPED_LEADING_TRAILING_RATIO_THRESHOLD = "soft-clipped-leading-trailing-ratio";
public static final String SOFT_CLIPPED_RATIO_THRESHOLD = "max-soft-clipped-ratio-threshold";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe this should be called just max-soft-clipped-ratio, for better consistency with max-soft-clipped-leading-trailing-ratio (while we're changing argument names....)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point. Done

@gatk-bot
Copy link

gatk-bot commented Jun 27, 2024

Github actions tests reported job failures from actions build 9702596193
Failures in the following jobs:

Test Type JDK Job ID Logs
cloud 17.0.6+10 9702596193.10 logs
integration 17.0.6+10 9702596193.11 logs
unit 17.0.6+10 9702596193.12 logs
variantcalling 17.0.6+10 9702596193.2 logs
integration 17.0.6+10 9702596193.0 logs
unit 17.0.6+10 9702596193.1 logs
conda 17.0.6+10 9702596193.3 logs

@jamesemery jamesemery merged commit 92dc4ae into master Jun 28, 2024
21 checks passed
@jamesemery jamesemery deleted the je_patchSoftclippedReadFilterLogic branch June 28, 2024 14:17
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.

SoftClippedReadFilter Shows Filtering Result Opposite to Description.
4 participants