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

Samtools style filtering syntax #264

Closed
edawson opened this issue Dec 12, 2016 · 1 comment
Closed

Samtools style filtering syntax #264

edawson opened this issue Dec 12, 2016 · 1 comment

Comments

@edawson
Copy link

edawson commented Dec 12, 2016

Is there a way to use samtools style (i.e. decimal) filter expressions with sambamba? I expected that it would be supported (given that the human-readable version is surely built on top of it). I'm having to use massive command lines to do filtering and would rather use a four-digit decimal.

If you could point me towards the relevant manual page I've missed or let me know if it's possible that'd be great. The sort+filter operation is fantastic, and I'd love to keep using it, but without a flag->filter converter or a way to just use the flag I think I'll have to switch to samtools for this project.

@lomereiter
Copy link
Contributor

Hi, this functionality was indeed missing. I've just added a new option --num-filter, which should be provided a string such as 96, /4 or 80/4 with meaning <-f samtools flag>/<-F samtools flag>.

pjotrp pushed a commit to pjotrp/sambamba that referenced this issue Dec 13, 2016
accepts string argument of form 'int', 'int1/int2' or '/int2'
with meaning that int1 bits must be set in the flag and int2 bits
must be unset (as in samtools -f/-F)
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

No branches or pull requests

2 participants