-
Notifications
You must be signed in to change notification settings - Fork 2
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
attempt txt input update #44
base: dev
Are you sure you want to change the base?
Conversation
Oh so this will basically say: If |
I feel like it should be better to just have it read from
or
|
For usability yeah, just added the txt file input for now because it seemed easier to add. I'll try stdin inputs |
The C version builds from a directory or a .txt file which is why I suggested it (to continue towards total feature parity). Is reading from stdin objectively better? |
From an R bindings perspective having to write a txt file from R to read in rust might negligibly slow things down over passing in bed filepaths directly. With stdin though, we can input multiple paths like below right?
|
Ah ok. Got it. Thanks. |
I'm not too sure which is better. I think its more in line with "UNIX philosophy" to be able to pipe things around, but I suppose I'm not too opinionated one way or another. |
I fixed this and the functionality now works for reading a .txt file. |
And I added stdin as an option so you can do this:
And it works. Please confirm this meets your needs and then merge to dev when you are ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just make sure this works like you expect it to.
Looks like it creates a .igd with .txt input but it the .igd output doesn't seem to work with search. A .igd created with a bed file directory doesn't work with search either unless I switch back to dev and recompile. Can you let me know if you can reproduce this?
|
I can't reproduce the above error. However, when using the dev branch of IGD, I notice a bug where I'm creating an .igd from a directory and my search is returning 0 hits. However, if I create an igd from a single source file and query that source file against the igd, it appears to be working fine. I will have to investigate this early next week. I suspect the issues may be related. |
Hmm I'm still getting the same error after pulling and recompiling, are there differences between mac and linux when compiling rust that can cause something like this? |
This is to allow create_igd_f() to work with a .txt input file instead of a directory for fileList of beds.