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

Add support for merging GZIP (or BGZIP) BED files #214

Closed
fgvieira opened this issue Dec 5, 2018 · 1 comment
Closed

Add support for merging GZIP (or BGZIP) BED files #214

fgvieira opened this issue Dec 5, 2018 · 1 comment

Comments

@fgvieira
Copy link

fgvieira commented Dec 5, 2018

bedops support gzip/bzip files on starch but not when merging BED files.
Would it be possible to add this feature?
thanks,

@sjneph
Copy link
Collaborator

sjneph commented Dec 5, 2018

Thanks for the request. You can get that effect using process substitutions in bash.
Something along these lines will do what you want:

bedops -m <(zcat file1.bed.gz) <(zcat file2.bed.gz) <(zcat file3.bed.gz) > answer.bed

@sjneph sjneph closed this as completed Dec 5, 2018
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