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

negative filtering? #203

Closed
alexlenail opened this issue Apr 1, 2016 · 1 comment
Closed

negative filtering? #203

alexlenail opened this issue Apr 1, 2016 · 1 comment

Comments

@alexlenail
Copy link

Does sambamba provide the option of filtering out regions, e.g. if I wanted to filter out all the chrM reads from my .bam file?

@lomereiter
Copy link
Contributor

I've just added a bunch of new filters for convenience—your case can be handled now by
--filter "ref_name != 'chrM'"
For sorted & indexed files, however, supplying a BED file is more efficient (needs some manual work but will skip even reading most reads in the region).

pjotrp pushed a commit to pjotrp/sambamba that referenced this issue Dec 13, 2016
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