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

Build sfi index in d4 files? #243

Closed
cademirch opened this issue Nov 23, 2024 · 10 comments
Closed

Build sfi index in d4 files? #243

cademirch opened this issue Nov 23, 2024 · 10 comments

Comments

@cademirch
Copy link

cademirch commented Nov 23, 2024

Hi @brentp, would you be open to this? It seems like the d4 bindings don't have an api for building the index, but it should be fairly simple to do, its available to the python bindings: https://github.com/38/d4-format/blob/480e0a36a453fd3ec40b6768458f8892e6f36510/pyd4/src/builder.rs#L129-L144.

I'd be happy to work on implementing this, but want to check if you're open to it first. Would require changes in d4-nim too presumably

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

hi @cademirch , yes, I'm open to it. If you have any questions on d4-nim, I'll try to answer.

@cademirch
Copy link
Author

Sweet. Opened up prs on d4-format and d4-nim for this. Should building the index be an option in mosdepth? Or just build it by default? It seems like the sfi index is tiny so maybe can just be built by default?

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

let's make it on by default

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

I'll make a new release that bumps with your changes to d4-nim and should therefore allow this.

@brentp brentp closed this as completed in d1b19aa Nov 24, 2024
@cademirch
Copy link
Author

awesome. thank you @brentp!

@cademirch
Copy link
Author

cademirch commented Nov 24, 2024

am i missing something or is there no call to the index function in d1b19aa?

edit: happy to make pr for it though

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

doh! yeah, I am on it.

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

I pushed another commit and overwrite v0.3.10. working on getting all my stuff updated so I can make a static binary and proper release.

@cademirch
Copy link
Author

great! thank you very much

@brentp
Copy link
Owner

brentp commented Nov 24, 2024

done. thanks again: https://github.com/brentp/mosdepth/releases/tag/v0.3.10
please let me know any other problems.

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