Skip to content

Allow building the index from a file that is a named pipe #125

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

rob-p
Copy link

@rob-p rob-p commented Jun 10, 2025

Hi @jguhlin,

I have a need for a use-case where I need to build the minimap2 index from a file that is a named pipe. The existing code doesn't allow this because it checks the size of the input file before attempting to build the index, but the named pipe has 0 size until the the reader (in this case, minimap2) opens the pipe. I modified the code in with_index to only check the file size if the path passed in refers to a regular file. Let me know if this looks OK to you; it's a very minor change.

Best,
Rob

@jguhlin jguhlin merged commit 594df96 into jguhlin:main Jun 12, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants