-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Access bigwigmerge from other crates #59
Comments
The right thing to do is for me to just make the available functions and structs public. Happy to take a PR for this - otherwise I will try to get to it maybe this evening or something this week. |
Great, I've created a PR with the necessary changes. I've tested my forked branch in our external crate and have confirmed that they fix the problem I was having. |
Merged. Will keep this open until the next release. (Will make a release cut soonish.) |
Awesome. Thank you! |
This is included in bigtools 0.5.4 released today! Closing - let me know if you run into other issues! |
Hi @jackh726,
Thank you for your work on bigtools!
I am currently exploring using bigtools to create bigwig files in one of our rust crates (https://github.com/databio/gtars). Our crate would create intermediate bigwigs before merging them into a single bigwig as a final result.
I thought the best way would be to call the the public function
bigwigmerge
frombigwigmerge.rs
and pass a constructedBigWigMergeArgs
struct to the function. However, while theBigWigMergeArgs
struct is public, some of the fields are private and I am unable to edit these fields from within another crate.I also looked at a second option, where I merge the values and write them using
BigWigWrite<File>
's wrtie function:However, all values is a private struct that implements the necessary
BBIDataSource
trait.I guess my questions for you are:
bigwigmerge [OPTIONS] <OUTPUT>
after using our crate, but I thought it would be nicer and less clunky to do this behind the scenes for the user.The text was updated successfully, but these errors were encountered: