-
Notifications
You must be signed in to change notification settings - Fork 594
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
All ReadFilters should have a flag to invert their tests #6005
Comments
Namespaced arguments in barclay are something we've talked about before that could help with this. So multiple argument collections / plugins objects could declare the same argument and it would be de-ambiguated by the full name of the plugin/collection. Something like |
Yeah, it would be useful (see #2582). Not sure if/when we'll ever get around to the Barclay changes though. Another simple option that wouldn't require Barclay changes would be to implement it as just another (plugin descriptor) command line argument that could be sued alongside
|
Is there any progress on this? Inverting the filters would be very helpful as currently, I am unable to filter the correct read set (especially compared to the specificity of samtools view). |
@ConorMesser This was added in GATK 4.6 (https://github.com/broadinstitute/gatk/releases/tag/4.6.0.0):
|
Closing -- this feature was added in GATK 4.6 |
All
ReadFilter
s should be able to be inverted by the user when specifying them on the command-line.Currently the only filter that has this feature is the new
SoftClippedReadFilter
, which has a flag specific to itself.The primary difficulty in implementing this feature is that Barclay may not parse the arguments correctly - it seems to only allow one argument of the same name on the command-line. This is an issue because if using
PrintReads
and specifying multipleReadFilter
s you would only be able to invert one of them even if the argument was specified multiple times.The text was updated successfully, but these errors were encountered: