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

Support specifying bed(Graph) input files as .gz #39

Open
jackh726 opened this issue May 24, 2024 · 4 comments
Open

Support specifying bed(Graph) input files as .gz #39

jackh726 opened this issue May 24, 2024 · 4 comments

Comments

@jackh726
Copy link
Owner

No description provided.

@mrvollger
Copy link

Hi @jackh726

This seems like a great potential tool, but my bed files tend to be very large, so it would be awesome if you allowed for compressed input (maybe through https://github.com/luizirber/niffler).

Mostly commenting so I'll get an update if there is progress.

Cheers,
Mitchell

@jackh726
Copy link
Owner Author

Cool crate! I had expected to just use the flate2 decompress, but may try niffler instead (for the extra support).

I'll work on getting this in this weekend - it's ultimately a fairly small addition, I just need to get to it.

@mrvollger
Copy link

Awesome, great news!

Overall I agree it should be pretty easy as it has been easy in some other "bed" crates I have worked in e.g.:
https://github.com/noamteyssier/gia/pull/58/files

Cheers!

@mrvollger
Copy link

mrvollger commented Jul 19, 2024

Hi @jackh726,

I have been playing with the tool, and it seems that streaming input to bedtobigbed works, which is awesome, but I just wanted to double-check that this is intended to work generally?

bgzip -cd large.bed.gz -@ 16 | bigtools bedtobigbed -s start -a my.as - hg38.analysisSet.chrom.sizes out.bb 

If it is supported, then this is an excellent workaround for compressed files for now.

Cheers,
Mitchell

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